]> granicus.if.org Git - postgresql/blobdiff - src/backend/commands/subscriptioncmds.c
Rename TransactionChain functions
[postgresql] / src / backend / commands / subscriptioncmds.c
index 9de5969302200106c11d2b86234c0f3ee7de45d8..2694e1b2d746ff714b25fdcbd8bc38fd3717b31c 100644 (file)
@@ -339,7 +339,7 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel)
         * replication slot.
         */
        if (create_slot)
-               PreventTransactionChain(isTopLevel, "CREATE SUBSCRIPTION ... WITH (create_slot = true)");
+               PreventInTransactionBlock(isTopLevel, "CREATE SUBSCRIPTION ... WITH (create_slot = true)");
 
        if (!superuser())
                ereport(ERROR,
@@ -897,7 +897,7 @@ DropSubscription(DropSubscriptionStmt *stmt, bool isTopLevel)
         * don't have the proper facilities for that.
         */
        if (slotname)
-               PreventTransactionChain(isTopLevel, "DROP SUBSCRIPTION");
+               PreventInTransactionBlock(isTopLevel, "DROP SUBSCRIPTION");
 
 
        ObjectAddressSet(myself, SubscriptionRelationId, subid);