diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-02-16 20:44:15 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-03-16 13:18:06 -0400 |
commit | 04700b685f31508036456bea4d92533e5ceee9d6 (patch) | |
tree | f3fc6cddf9f5764decbaa76c5c5423fdcd873a36 /src/backend/commands/subscriptioncmds.c | |
parent | 8d47a908626bf0800dc6a01f4ff2b2bc15cdaf86 (diff) | |
download | postgresql-04700b685f31508036456bea4d92533e5ceee9d6.tar.gz postgresql-04700b685f31508036456bea4d92533e5ceee9d6.zip |
Rename TransactionChain functions
We call this thing a "transaction block" everywhere except in a few
functions, where it is mysteriously called a "transaction chain". In
the SQL standard, a transaction chain is something different. So rename
these functions to match the common terminology.
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Diffstat (limited to 'src/backend/commands/subscriptioncmds.c')
-rw-r--r-- | src/backend/commands/subscriptioncmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index 9de59693022..2694e1b2d74 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -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); |