Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8E3529FBDF8 for ; Tue, 10 Jul 2007 15:15:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88270-06 for ; Tue, 10 Jul 2007 15:15:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id C60B49FBDE5 for ; Tue, 10 Jul 2007 15:15:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l6AIFK8Y003846; Tue, 10 Jul 2007 14:15:20 -0400 (EDT) To: Peter Eisentraut cc: pgsql-sql@postgresql.org Subject: Re: Database system identifier from SQL 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> Comments: In-reply-to Peter Eisentraut message dated "Tue, 10 Jul 2007 20:06:10 +0200" Date: Tue, 10 Jul 2007 14:15:20 -0400 Message-ID: <3845.1184091320@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/50 X-Sequence-Number: 28785 Peter Eisentraut writes: > Tom Lane wrote: >> Peter Eisentraut 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