Re: pg_conndefaults Returning empty string

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: pg_conndefaults Returning empty string
Дата
Msg-id 54FD9D4E.4040004@aklaver.com
обсуждение исходный текст
Ответ на pg_conndefaults Returning empty string  (Anushka Chandrababu <anushka.babu@gmail.com>)
Ответы Re: pg_conndefaults Returning empty string  (Anushka Chandrababu <anushka.babu@gmail.com>)
Список pgsql-general
On 03/09/2015 12:57 AM, Anushka Chandrababu wrote:
> Hi,
>
> I am accessing postgres database using tcl. I am looking for a way to
> change the database in an existing connection, but I saw that this is
> not possible in postgresql without creating a new connection.
>
> Then I decided to query pg_conndefaults so that I can get the previous
> connection detail, mainly the host ip address. But
> it returned blank strings. Is there a way to set the pg_conndefault
> values.Then I can use those values to make the new connection. Please
> understand that at this point in the code, I have no information about
> the previous connection parameters. I only know the new database name to
> which it has to be connected.
>
> Please let me know if there is a way to tackle this situation.

What version of Postgres are you working with?

The last version I can find that has pg_conndefaults is 7.4.

>
> Thank You
> Anushka


--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: VACUUM FULL doesn't reduce table size
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Creating composite keys from csv