Re: Database system identifier from SQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Database system identifier from SQL
Date: 2007-07-10 18:15:20
Message-ID: 3845.1184091320@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane wrote:
>> Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mohd Ghalib Akhtar 2007-07-11 13:04:51 linux
Previous Message Peter Eisentraut 2007-07-10 18:06:10 Re: Database system identifier from SQL