Re: Displaying database names from within application - Mailing list pgsql-novice

From Tom Lane
Subject Re: Displaying database names from within application
Date
Msg-id 13880.1013786940@sss.pgh.pa.us
Whole thread Raw
In response to Displaying database names from within application  (William C Brennan <brennan@netaxs.com>)
List pgsql-novice
William  C Brennan <brennan@netaxs.com> writes:
> (Of course, I could make a system call, asking Unix to interpret the
> string "psql -l", but I'd like to thing there is a more direct route
> available to me, performing the same call to the Postgresql backend
> that the command "psql -l" must do itself.)

Try "psql -E -l" to see the query psql generates for this purpose;
or to see any other query psql generates on its own.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: problem in executing a function
Next
From: "Patrick Hatcher"
Date:
Subject: Re: column length and case sensitivity