Re: Database system identifier from SQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Database system identifier from SQL
Дата
Msg-id 3845.1184091320@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Database system identifier from SQL  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-sql
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane wrote:
>> Peter Eisentraut <peter_e@gmx.net> writes:
>>> Is there a way to query the database system identifier that
>>> pg_controldata outputs from SQL?
>> 
>> Don't think so.  Do you have a use-case for providing a function to
>> return that?

> I'd like to find out whether two connections are really to the same 
> server.

Hmm.  Seems a bit of an odd case, but on the other hand there might be
applications for it in connection with management of backups and
WAL-shipping and so forth.  I have no objection to adding a function.
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Database system identifier from SQL
Следующее
От: Mohd Ghalib Akhtar
Дата:
Сообщение: linux