Re: current database?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: current database?
Дата
Msg-id 15697.961438579@sss.pgh.pa.us
обсуждение исходный текст
Ответ на current database?  (mikeo <mikeo@spectrumtelecorp.com>)
Список pgsql-general
mikeo <mikeo@spectrumtelecorp.com> writes:
>  when i do \c - postgres tells me which
> database i'm currently connected to.  where
> does it get this info?  i'd like to use it
> in a program.

If you're working directly with libpq, then PQdb() et al return
the connection parameters used to create the current PGconn object.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_sorttemp*
Следующее
От: "Stephan Szabo"
Дата:
Сообщение: Re: A Query on PG_ tables