Hi guys,
Thanks for all your answers and hints. I'm finally able to connect to a remote Postgres DB. Alas, I've no clue how to retrieve data from the connected database. Sure, I know SQL, but how to query the DB with Free Pascal? Do I need additional libraries (units) and how to program a query?
BTW, as much as I like Lazarus / Free Pascal, the documentation is somewhat frustrating sometimes. You find a piece of information here, another peace there and some code examples which are 10 yrs old or even older and when you try to Frankenstein everything together, it doesn't work because you used the wrong unit and there are almost no information about the right one. Generally the docs are quite useful, but in my case, using Free Pascal to query a Postgres DB ... OMG! Lots of stuff regarding Lazarus / GUI programming with Firebird, though.