Re: Logical Replication WIP - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Logical Replication WIP
Date
Msg-id bb90df22-96c8-8eef-db8a-b8276e085976@2ndquadrant.com
Whole thread Raw
In response to Re: Logical Replication WIP  (Steve Singer <steve@ssinger.info>)
Responses Re: Logical Replication WIP  (Steve Singer <steve@ssinger.info>)
List pgsql-hackers
On 9/18/16 4:17 PM, Steve Singer wrote:
> When I create my subscriber database by doing a physical backup of the 
> publisher cluster (with cp before I add any data) then I am unable to 
> connect subscribe.
> ie
> initdb ../data
> cp -r ../data ../data2
> ./postgres -D ../data
> ./postgres -D ../data2
> 
> This make sense when I look at your code, but it might not be what we want

I think if we want to prevent the creation of subscriptions that point
to self, then we need to create a magic token when the postmaster starts
and check for that when we connect.  So more of a running-instance
identifier instead of a instance-on-disk identifier.

The other option is that we just allow it and make it more robust.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Rename max_parallel_degree?
Next
From: Robert Haas
Date:
Subject: Re: Fix Error Message for allocate_recordbuf() Failure