On Fri, May 7, 2010 at 11:18, Joao Ferreira gmail <joao.miguel.c.ferreira@xxxxxxxxx> wrote: > Hello all, > > I need to write an application in C to read the list of databases > currently in the server. very much like a "psql -l"... select datname as database from pg_database; > but I need it in C ! I never used C before to access PG. > > the libpq API seems a bit scary ! Is there anything, shipped with > postgresql, other than libpq that would make my life simpler ? Maybe ecpg http://www.postgresql.org/docs/current/static/ecpg.html ? I also hear good things about libpqtypes making some things easier http://pgfoundry.org/projects/libpqtypes/. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general