I've tried to find a way to ask the postgres server for the current list of databases (and later list and describe the tables) from a C program using the libpq library. Currently I'm doing a (simplified) popen("psql --command '\\l'") but this is not really how I would like to solve the problem ... Is there any way of asking the postgres server for the information I need via a libpq function?
-
Try this? stackoverflow.com/questions/11650018/…richyen– richyen2020-12-21 08:46:11 +00:00Commented Dec 21, 2020 at 8:46
Add a comment
|