Re: Displaying database names from within application

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: William C Brennan <brennan(at)netaxs(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Displaying database names from within application
Date: 2002-02-15 15:29:00
Message-ID: 13880.1013786940@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

William C Brennan <brennan(at)netaxs(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Patrick Hatcher 2002-02-15 16:28:25 Re: column length and case sensitivity
Previous Message Tom Lane 2002-02-15 15:14:01 Re: problem in executing a function