Re: Displaying database names from within application

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Displaying database names from within application
Дата
Msg-id 13880.1013786940@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Displaying database names from within application  (William C Brennan <brennan@netaxs.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: problem in executing a function
Следующее
От: "Patrick Hatcher"
Дата:
Сообщение: Re: column length and case sensitivity