Re: [HACKERS] Notes on testing Postgres 10b1 - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Notes on testing Postgres 10b1
Date
Msg-id 13ae8e32-c335-4ee3-dc29-d12778f86ac5@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] Notes on testing Postgres 10b1  (Josh Berkus <josh@berkus.org>)
Responses Re: [HACKERS] Notes on testing Postgres 10b1  (Josh Berkus <josh@berkus.org>)
List pgsql-hackers
On 6/7/17 01:01, Josh Berkus wrote:
> * Having defaults on the various _workers all devolve from max_workers
> is also great.

I'm not aware of anything like that happening.

> P1. On the publishing node, logical replication relies on the *implied*
> correspondence of the application_name and the replication_slot both
> being named the same as the publication in order to associate a
> particular publication with a particular replication connection.
> However, there's absolutely nothing preventing me from also creating a
> binary replication connection by the same name  It really seems like we
> need a field in pg_stat_replication or pg_replication_slots which lists
> the publication.

I'm not quite sure what you are getting at here.  The application_name
seen on the publisher side is the subscription name.  You can create a
binary replication connection using the same application_name, but
that's already been possible before.  But the publications don't care
about any of this.

> P2: If I create a subscription on a table with no primary key, I do not
> recieve a warning.  There should be a warning, since in most cases such
> a subscription will not work.  I suggest the text:
> 
> "logical replication target relation "public.fines" has no primary key.
> Either create one, or set REPLICA IDENTITY index and set the published
> relation to REPLICA IDENTITY FULL."

At that point, we don't know what is being published.  If only inserts
are being published or REPLICA IDENTITY FULL is set, then it will work.
We don't want to give warnings about things that might not be true.

More guidance on some of the potential failure cases would be good, but
it would need more refinement.

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



pgsql-hackers by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: [HACKERS] Is ECPG's SET CONNECTION really not thread-aware?
Next
From: Petr Jelinek
Date:
Subject: Re: [HACKERS] logical replication - possible remaining problem