Re: pg_system_identifier() - Mailing list pgsql-hackers

From Greg Stark
Subject Re: pg_system_identifier()
Date
Msg-id CAM-w4HMJc+7OCDUFYD=ChWSp6jxBRPContr3Y2Y3py5swwaxig@mail.gmail.com
Whole thread
In response to Re: pg_system_identifier()  (Hannu Krosing <hannu@2ndQuadrant.com>)
Responses Re: pg_system_identifier()
List pgsql-hackers
This doesn't generate a unique id. You could back up a standby and restore it and point it at the original master and end up with two standbies with the same id.


On Fri, Aug 23, 2013 at 4:08 PM, Hannu Krosing <hannu@2ndquadrant.com> wrote:
On 08/22/2013 06:37 PM, Tom Lane wrote:
> A
> Do we have a reliable way of generating a unique identifier for each slave
> (independently of how that might be exposed)?
Probably we could just generate an unique UUID when we first detect
that we are replicating from the master with same UUID.

This of course requires this master UUID to be present in some way
in the replication stream

Cheers

--
Hannu Krosing
PostgreSQL Consultant
Performance, Scalability and High Availability
2ndQuadrant Nordic OÜ



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



--
greg

pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: pg_system_identifier()
Next
From: Christopher Browne
Date:
Subject: Re: pg_system_identifier()