mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
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>
This commit is contained in:
@ -535,5 +535,7 @@ extern void ExecSimpleRelationDelete(EState *estate, EPQState *epqstate,
|
||||
TupleTableSlot *searchslot);
|
||||
extern void CheckCmdReplicaIdentity(Relation rel, CmdType cmd);
|
||||
|
||||
extern void CheckSubscriptionRelkind(char relkind, const char *nspname,
|
||||
const char *relname);
|
||||
|
||||
#endif /* EXECUTOR_H */
|
||||
|
Reference in New Issue
Block a user