]> granicus.if.org Git - postgresql/commit
Check relkind of tables in CREATE/ALTER SUBSCRIPTION
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 17 May 2017 02:57:16 +0000 (22:57 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 17 May 2017 02:57:16 +0000 (22:57 -0400)
commit944dc0f9cec7c3d33648f41aaecfbd976106e975
tree62b2499c3f057a28e0f8e7cac96e769929115a3f
parent0fbfb65d4bfd429651dc28faf3ad1846c965e18d
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.jelinek@2ndquadrant.com>
Reported-by: tushar <tushar.ahuja@enterprisedb.com>
src/backend/commands/subscriptioncmds.c
src/backend/executor/execReplication.c
src/backend/replication/logical/relation.c
src/include/executor/executor.h