diff options
| author | Andres Freund | 2023-04-08 04:47:25 +0000 |
|---|---|---|
| committer | Andres Freund | 2023-04-08 04:47:25 +0000 |
| commit | 15f8203a5975d6b9b78e2c64e213ed964b50c044 (patch) | |
| tree | 09f68aba0bed426eaa8a42031583dee2a33d094c /src/tools | |
| parent | d4e71df6d757fd21c363164a3a4d3b5681462662 (diff) | |
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" <bertranddrouvot.pg@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/20230407075009.igg7be27ha2htkbt@awork3.anarazel.de
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/pgindent/typedefs.list | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list index df960883c5c..b4058b88c3e 100644 --- a/src/tools/pgindent/typedefs.list +++ b/src/tools/pgindent/typedefs.list @@ -2339,6 +2339,7 @@ ReplicaIdentityStmt ReplicationKind ReplicationSlot ReplicationSlotCtlData +ReplicationSlotInvalidationCause ReplicationSlotOnDisk ReplicationSlotPersistency ReplicationSlotPersistentData |
