mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Check that published table exists on subscriber
Author: Petr Jelinek <pjmodos@pjmodos.net>
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user