Disallow CREATE/DROP SUBSCRIPTION in transaction block
Peter Eisentraut <peter_e@gmx.net>
Disallow CREATE/DROP SUBSCRIPTION in transaction block Disallow CREATE SUBSCRIPTION and DROP SUBSCRIPTION in a transaction block when the replication slot is to be created or dropped, since that cannot be rolled back. based on patch by Masahiko Sawada <sawada.mshk@gmail.com>
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_subscription.sgml | modified | +5 −0 |
| doc/src/sgml/ref/drop_subscription.sgml | modified | +2 −2 |
| src/backend/commands/subscriptioncmds.c | modified | +29 −9 |
| src/backend/tcop/utility.c | modified | +3 −2 |
| src/include/commands/subscriptioncmds.h | modified | +3 −2 |
| src/test/regress/expected/subscription.out | modified | +12 −0 |
| src/test/regress/sql/subscription.sql | modified | +12 −0 |