From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Database system identifier from SQL
Date: Tue, 10 Jul 2007 14:15:20 -0400
Message-ID: <3845.1184091320@sss.pgh.pa.us> (raw)
In-Reply-To: <200707102006.11643.peter_e@gmx.net>
References: <200707101624.47885.peter_e@gmx.net>
<20025.1184080999@sss.pgh.pa.us>
<200707102006.11643.peter_e@gmx.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net
Subject: Re: Database system identifier from SQL
In-Reply-To: <3845.1184091320@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox