- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitf36e577
Amit Kapila
Fix the handling of two GUCs during upgrade.
Previously, the check_hook functions for max_slot_wal_keep_size andidle_replication_slot_timeout would incorrectly raise an ERROR for valuesset in postgresql.conf during upgrade, even though those values were notactively used in the upgrade process.To prevent logical slot invalidation during upgrade, we used to setspecial values for these GUCs. Now, instead of relying on those values, wedirectly prevent WAL removal and logical slot invalidation caused bymax_slot_wal_keep_size and idle_replication_slot_timeout.Note: PostgreSQL 17 does not include the idle_replication_slot_timeoutGUC, so related changes were not backported.BUG #18979Reported-by: jorsol <jorsol@gmail.com>Author: Dilip Kumar <dilipbalaut@gmail.com>Reviewed by: vignesh C <vignesh21@gmail.com>Reviewed by: Alvaro Herrera <alvherre@alvh.no-ip.org>Backpatch-through: 17, where it was introducedDiscussion:https://postgr.es/m/219561.1751826409@sss.pgh.pa.usDiscussion:https://postgr.es/m/18979-a1b7fdbb7cd181c6@postgresql.org1 parenta1973e5 commitf36e577
File tree
5 files changed
+14
-77
lines changed- src
- backend
- access/transam
- replication
- utils/misc
- bin/pg_upgrade
- include/utils
5 files changed
+14
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
2349 | | - | |
2350 | | - | |
2351 | | - | |
2352 | | - | |
2353 | | - | |
2354 | | - | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
2361 | | - | |
2362 | | - | |
2363 | | - | |
2364 | | - | |
2365 | | - | |
2366 | | - | |
2367 | | - | |
2368 | 2349 | | |
2369 | 2350 | | |
2370 | 2351 | | |
| |||
8151 | 8132 | | |
8152 | 8133 | | |
8153 | 8134 | | |
8154 | | - | |
8155 | | - | |
8156 | | - | |
8157 | | - | |
| 8135 | + | |
8158 | 8136 | | |
8159 | 8137 | | |
8160 | 8138 | | |
8161 | 8139 | | |
8162 | 8140 | | |
8163 | | - | |
8164 | | - | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
| 8146 | + | |
| 8147 | + | |
8165 | 8148 | | |
8166 | 8149 | | |
8167 | 8150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1887 | 1887 | | |
1888 | 1888 | | |
1889 | 1889 | | |
1890 | | - | |
1891 | | - | |
1892 | | - | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | 1890 | | |
1900 | 1891 | | |
1901 | 1892 | | |
| |||
2042 | 2033 | | |
2043 | 2034 | | |
2044 | 2035 | | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
2045 | 2040 | | |
2046 | 2041 | | |
2047 | 2042 | | |
| |||
3054 | 3049 | | |
3055 | 3050 | | |
3056 | 3051 | | |
3057 | | - | |
3058 | | - | |
3059 | | - | |
3060 | | - | |
3061 | | - | |
3062 | | - | |
3063 | | - | |
3064 | | - | |
3065 | | - | |
3066 | | - | |
3067 | | - | |
3068 | | - | |
3069 | | - | |
3070 | | - | |
3071 | | - | |
3072 | | - | |
3073 | | - | |
3074 | | - | |
3075 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3081 | 3081 | | |
3082 | 3082 | | |
3083 | 3083 | | |
3084 | | - | |
| 3084 | + | |
3085 | 3085 | | |
3086 | 3086 | | |
3087 | 3087 | | |
| |||
3104 | 3104 | | |
3105 | 3105 | | |
3106 | 3106 | | |
3107 | | - | |
| 3107 | + | |
3108 | 3108 | | |
3109 | 3109 | | |
3110 | 3110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 244 | | |
263 | 245 | | |
264 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
179 | | - | |
180 | | - | |
181 | 177 | | |
182 | 178 | | |
0 commit comments
Comments
(0)