Re: uuid for each postgres install? - Mailing list pgsql-sql

From Adrian Klaver
Subject Re: uuid for each postgres install?
Date
Msg-id 54247889.8050002@aklaver.com
Whole thread Raw
In response to uuid for each postgres install?  (Gerardo Herzig <gherzig@fmed.uba.ar>)
Responses Re: uuid for each postgres install?
List pgsql-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



pgsql-sql by date:

Previous
From: Gerardo Herzig
Date:
Subject: uuid for each postgres install?
Next
From: Gerardo Herzig
Date:
Subject: Re: uuid for each postgres install?