forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7021d3b
committed
Prevent startup of logical replication launcher during pg_upgrade
The logical replication launcher may start apply workers during anupgrade. This could be the cause of corruptions on a new cluster ifthese are able to apply changes before the physical files are copiedover to the new cluster.The chance of being able to do so is small as pg_upgrade uses its ownport and unix domain directory (the latter is customizable with--socketdir), but just preventing the launcher to start is safer at theend, because we are then sure that no changes will be applied. Like29d0a77 for max_slot_wal_keep_size, this is only set when a clusteruses v17 or newer.Author: Vignesh CDiscussion:https://postgr.es/m/CALDaNm2g9ZKf=y8X6z6MsLCuh8WwU-=Q6pLj35NFi2M5BZNS_A@mail.gmail.com1 parent40d5e59 commit7021d3b
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
248 | 248 |
| |
249 | 249 |
| |
250 | 250 |
| |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
251 | 259 |
| |
252 | 260 |
| |
253 |
| - | |
| 261 | + | |
254 | 262 |
| |
255 | 263 |
| |
256 | 264 |
| |
|
0 commit comments
Comments
(0)