pgsql: Check relkind of tables in CREATE/ALTER SUBSCRIPTION

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Check relkind of tables in CREATE/ALTER SUBSCRIPTION
Date: 2017-05-17 02:57:56
Message-ID: E1dAp9w-0000Tv-G1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Check relkind of tables in CREATE/ALTER SUBSCRIPTION

We used to only check for a supported relkind on the subscriber during
replication, which is needed to ensure that the setup is valid and we
don't crash. But it's also useful to tell the user immediately when
CREATE or ALTER SUBSCRIPTION is executed that the relation being added
to the subscription is not of a supported relkind.

Author: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>
Reported-by: tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/944dc0f9cec7c3d33648f41aaecfbd976106e975

Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 11 +++++++++++
src/backend/executor/execReplication.c | 20 ++++++++++++++++++++
src/backend/replication/logical/relation.c | 13 ++++---------
src/include/executor/executor.h | 2 ++
4 files changed, 37 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2017-05-17 12:04:04 Re: [COMMITTERS] pgsql: Tag refs/tags/REL_10_BETA1 was created
Previous Message Tom Lane 2017-05-17 02:37:07 Re: [COMMITTERS] pgsql: Tag refs/tags/REL_10_BETA1 was created