postgresql/src/include/replication
Alvaro Herrera 866237a6fa
Advance old-segment horizon properly after slot invalidation
When some slots are invalidated due to the max_slot_wal_keep_size limit,
the old segment horizon should move forward to stay within the limit.
However, in commit c655077639 we forgot to call KeepLogSeg again to
recompute the horizon after invalidating replication slots.  In cases
where other slots remained, the limits would be recomputed eventually
for other reasons, but if all slots were invalidated, the limits would
not move at all afterwards.  Repair.

Backpatch to 13 where the feature was introduced.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reported-by: Marcin Krupowicz <mk@071.ovh>
Discussion: https://postgr.es/m/17103-004130e8f27782c9@postgresql.org
2021-07-16 12:07:30 -04:00
..
backup_manifest.h Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
basebackup.h Also rename 'struct manifest_info'. 2020-04-23 09:47:50 -04:00
decode.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logical.h Rework XLogReader callback system 2020-05-08 15:40:11 -04:00
logicallauncher.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicalproto.h Prepare to support non-tables in publications 2020-03-19 08:25:07 +01:00
logicalrelation.h Don't try to print data type names in slot_store_error_callback(). 2021-07-02 16:04:54 -04:00
logicalworker.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
message.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
origin.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
output_plugin.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pgoutput.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
reorderbuffer.h Fix ABI break introduced by commit 4daa140a2f. 2021-06-24 15:21:50 +05:30
slot.h Advance old-segment horizon properly after slot invalidation 2021-07-16 12:07:30 -04:00
snapbuild.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
syncrep.h Fix race conditions in synchronous standby management. 2020-04-18 14:02:44 -04:00
walreceiver.h Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
walsender.h Generate backup manifests for base backups, and validate them. 2020-04-03 15:05:59 -04:00
walsender_private.h Revert "Track statistics for spilling of changes from ReorderBuffer". 2020-07-13 08:46:56 +05:30
worker_internal.h Rename the logical replication global "wrconn" 2021-05-12 19:13:54 -04:00