postgresql/src/include/replication
Álvaro Herrera 2af1dc8928
Disable logical decoding after REPACK (CONCURRENTLY)
REPACK (CONCURRENTLY) uses a temporary logical replication slot, which
is dropped once done, but it wasn't calling RequestDisableLogicalDecoding(),
leaving effective_wal_level stuck at 'logical'.

Fix by adding a Boolean flag to ReplicationSlotDropAcquired() to have it
request to disable logical decoding, and passing it as true on REPACK.
Other callers of that function preserve their existing behavior.

Author: Imran Zaheer <imran.zhir@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Discussion: https://postgr.es/m/CA+UBfaktds57dw2M8BEv_kS-=ixph3w+3MxKixtaDQMi_k7Ybg@mail.gmail.com
2026-05-27 20:11:29 +02:00
..
conflict.h Avoid including utils/timestamp.h in conflict.h. 2026-02-23 10:19:05 +05:30
decode.h Add CONCURRENTLY option to REPACK 2026-04-06 21:55:08 +02:00
logical.h Adjust log level of logical decoding messages by context 2026-04-10 22:59:34 +09:00
logicalctl.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
logicallauncher.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
logicalproto.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logicalrelation.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logicalworker.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
message.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
origin.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
output_plugin.h Revert "Allow logical replication snapshots to be database-specific" 2026-05-23 21:33:19 -07:00
pgoutput.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
reorderbuffer.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
slot.h Disable logical decoding after REPACK (CONCURRENTLY) 2026-05-27 20:11:29 +02:00
slotsync.h Fix slotsync worker blocking promotion when stuck in wait 2026-04-08 11:22:21 +09:00
snapbuild.h Revert "Allow logical replication snapshots to be database-specific" 2026-05-23 21:33:19 -07:00
snapbuild_internal.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
syncrep.h Harmonize function parameter names for Postgres 19. 2026-04-22 12:47:19 -04:00
walreceiver.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
walsender.h Add wal_sender_shutdown_timeout GUC to limit shutdown wait for replication 2026-04-06 11:35:03 +09:00
walsender_private.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
worker_internal.h Don't include storage/lock.h in so many headers 2026-03-24 17:11:12 +01:00