Is this repairable by me, or is it easier to look for a low-level solution, what do you think?
When I had to deal with sqlite issues, I implemented local workarounds instead of touching the fpc rtl/packages.
First because once I will upgrade fpc ecosystem, I will only need to adapt workarounds in my code, not patches to it.
Second, honestly, because modifying fpc distribution is not easy.
After posting first, I had an idea, maybe could help: if fields in _schema1.table1 are known (not a table subject to change that you what it to be handles anyway by code by * even if changed over time) you could try creating a view on that query result on postgres server side. After that TSQLQuery should encounter less diffculties while determining the filed types, something like:
create view _schema1.ViewOftable1 (vcolumn1, vcolumn2, ...) as SELECT column1, column2, ... FROM _schema1.table1 EXCEPT SELECT * FROM _schema2.table1;