forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit15f8203
committed
Replace replication slot's invalidated_at LSN with an enum
This is mainly useful because the upcoming logical-decoding-on-standby featureadds further reasons for invalidating slots, and we don't want to end up withmultiple invalidated_* fields, or check different attributes.Eventually we should consider not resetting restart_lsn when invalidating aslot due to max_slot_wal_keep_size. But that's a user visible change, so leftfor 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.de1 parentd4e71df commit15f8203
File tree
4 files changed
+41
-11
lines changed- src
- backend/replication
- include/replication
- tools/pgindent
4 files changed
+41
-11
lines changedLines changed: 24 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| |||
855 | 855 |
| |
856 | 856 |
| |
857 | 857 |
| |
858 |
| - | |
859 |
| - | |
| 858 | + | |
860 | 859 |
| |
861 | 860 |
| |
862 | 861 |
| |
| |||
901 | 900 |
| |
902 | 901 |
| |
903 | 902 |
| |
| 903 | + | |
904 | 904 |
| |
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
908 | 908 |
| |
909 | 909 |
| |
| 910 | + | |
910 | 911 |
| |
911 | 912 |
| |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
912 | 917 |
| |
913 | 918 |
| |
914 | 919 |
| |
| |||
946 | 951 |
| |
947 | 952 |
| |
948 | 953 |
| |
| 954 | + | |
949 | 955 |
| |
950 | 956 |
| |
951 | 957 |
| |
| |||
960 | 966 |
| |
961 | 967 |
| |
962 | 968 |
| |
| 969 | + | |
963 | 970 |
| |
964 | 971 |
| |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
965 | 976 |
| |
966 | 977 |
| |
967 | 978 |
| |
| |||
1012 | 1023 |
| |
1013 | 1024 |
| |
1014 | 1025 |
| |
| 1026 | + | |
| 1027 | + | |
1015 | 1028 |
| |
1016 | 1029 |
| |
1017 | 1030 |
| |
| |||
1069 | 1082 |
| |
1070 | 1083 |
| |
1071 | 1084 |
| |
| 1085 | + | |
| 1086 | + | |
1072 | 1087 |
| |
1073 | 1088 |
| |
1074 | 1089 |
| |
| |||
1294 | 1309 |
| |
1295 | 1310 |
| |
1296 | 1311 |
| |
1297 |
| - | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1298 | 1318 |
| |
1299 | 1319 |
| |
1300 | 1320 |
| |
|
Lines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
319 |
| - | |
320 |
| - | |
| 318 | + | |
| 319 | + | |
321 | 320 |
| |
322 |
| - | |
323 |
| - | |
| 321 | + | |
324 | 322 |
| |
325 | 323 |
| |
326 | 324 |
| |
|
Lines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
40 | 51 |
| |
41 | 52 |
| |
42 | 53 |
| |
| |||
72 | 83 |
| |
73 | 84 |
| |
74 | 85 |
| |
75 |
| - | |
76 |
| - | |
| 86 | + | |
| 87 | + | |
77 | 88 |
| |
78 | 89 |
| |
79 | 90 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2339 | 2339 |
| |
2340 | 2340 |
| |
2341 | 2341 |
| |
| 2342 | + | |
2342 | 2343 |
| |
2343 | 2344 |
| |
2344 | 2345 |
| |
|
0 commit comments
Comments
(0)