agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-sql@postgresql.org
Subject: Re: uuid for each postgres install?
Date: Thu, 25 Sep 2014 13:18:17 -0700
Message-ID: <54247889.8050002@aklaver.com> (raw)
In-Reply-To: <1925720361.922357.1411675347958.JavaMail.root@fmed.uba.ar>
References: <1925720361.922357.1411675347958.JavaMail.root@fmed.uba.ar>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 09/25/2014 01:02 PM, Gerardo Herzig wrote:
> Hi all. Im wondering if there is, maybe at compilation time, some sort of unique identifier who identifies the actual installation.
>
> It would be even better if can be accesed in SQL form.
> At "initdb" time would be accepted, too.
initdb does create a Database system identifier which can seen using
pg_controldata:
postgres@killi:~> pg_controldata /usr/local/pgsql/data
pg_control version number: 903
Catalog version number: 201008051
Database system identifier: 5861256043884404217
Database cluster state: shut down
A quick search showed that folks would like an SQL way of getting this
and that none is available as far as I can determine. The only solution
I could find was grepping the pg_controldata output.
>
>
> Thanks!
>
> Gerardo
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (4+ messages) latest in thread
Message-ID: <54247889.8050002@aklaver.com>
Permalink: ../54247889.8050002@aklaver.com/
Also on: postgresql.org/message-id/54247889.8050002@aklaver.com
reply
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: adrian.klaver@aklaver.com
Subject: Re: uuid for each postgres install?
In-Reply-To: <54247889.8050002@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox