mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
Check that published table exists on subscriber
Author: Petr Jelinek <pjmodos@pjmodos.net>
This commit is contained in:
parent
61c2e1a95f
commit
176cbc2a25
@ -399,7 +399,7 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel)
|
|||||||
RangeVar *rv = (RangeVar *) lfirst(lc);
|
RangeVar *rv = (RangeVar *) lfirst(lc);
|
||||||
Oid relid;
|
Oid relid;
|
||||||
|
|
||||||
relid = RangeVarGetRelid(rv, AccessShareLock, true);
|
relid = RangeVarGetRelid(rv, AccessShareLock, false);
|
||||||
|
|
||||||
SetSubscriptionRelState(subid, relid, table_state,
|
SetSubscriptionRelState(subid, relid, table_state,
|
||||||
InvalidXLogRecPtr);
|
InvalidXLogRecPtr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user