Replace replication slot's invalidated_at LSN with an enum This is mainly useful because the upcoming logical-decoding-on-standby feature adds further reasons for invalidating slots, and we don't want to end up with multiple invalidated_* fields, or check different attributes.
Eventually we should consider not resetting restart_lsn when invalidating a slot due to max_slot_wal_keep_size. But that's a user visible change, so left for later. Increases SLOT_VERSION, due to the changed field (with a different alignment, no less). Reviewed-by: "Drouvot, Bertrand" <[email protected]> Reviewed-by: Alvaro Herrera <[email protected]> Reviewed-by: Melanie Plageman <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/15f8203a5975d6b9b78e2c64e213ed964b50c044 Modified Files -------------- src/backend/replication/slot.c | 28 ++++++++++++++++++++++++---- src/backend/replication/slotfuncs.c | 8 +++----- src/include/replication/slot.h | 15 +++++++++++++-- src/tools/pgindent/typedefs.list | 1 + 4 files changed, 41 insertions(+), 11 deletions(-)
