Re: Notes on testing Postgres 10b1

From: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>
To: Josh Berkus <josh(at)berkus(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Notes on testing Postgres 10b1
Date: 2017-06-08 01:10:36
Message-ID: 027c9660-2b33-1914-a0a1-b2fc722ec947@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 07/06/17 07:01, Josh Berkus wrote:
> Folks,
>
> I've put together some demos on PostgreSQL 10beta1. Here's a few
> feedback notes based on my experience with it.
> [...snip...]
>
> Problems
> --------
>
> 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.
>

What do you mean implied correspondence of application_name and the
replication_slot? We only use subscription_name as default value for
those when user does not specify something else, all three of those can
have different value if user sets it up that way. And there is no
correspondence whatsoever to names of publications. The upstream only
knows which publications to replicate because subscription gives list of
requested publications as option to START_REPLICATION walsender command.
The list of publications associated with a subscription are only stored
on the subscriber and publisher has no idea what those are.

--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2017-06-08 01:14:55 Re: Use of snapshot in logical replication
Previous Message Craig Ringer 2017-06-08 01:09:55 Re: tap tests on older branches fail if concurrency is used