Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group