hi Mol,
as i say i use libPQ.DLL "native" under Xbase++ so i have my "own" PGSQL CLASS
as it is "pure" CLASS Code it will also work under harbour
but it need "Import" LIB.A ...
---
i have work with TPQServer() to "import" DBF into PostgreSQL Table
it does all what is need to "import" ... but my "native" CLASS have "more"
i have begin to make harbour Sample hbPGU where you can "testdrive" "import"

- HBPGU_020.JPG (459.49 KiB) Viewed 750 times
as Work is NOT finish yet i have not release hbPGU and Source, here "beta" Version 0.20
---
i use PostgreSQL Server v14 "without " SSL so i need "only" LIBPQ.DLL from Version v14
! Note : since v9.x it need "more" *.DLL like ssleay32.dll even when not used
using PostgreSQL Server v14 you even can use libPQ.DLL v7.5x as kit have all (except SSL etc) on Client Side
new Function are on Server Side where you use Query when have made "connection" via libPQ.DLL