Prohibit max_slot_wal_keep_size to value other than -1 during upgrade.
Amit Kapila <akapila@postgresql.org>
Prohibit max_slot_wal_keep_size to value other than -1 during upgrade. We don't want existing slots in the old cluster to get invalidated during the upgrade. During an upgrade, we set this variable to -1 via the command line in an attempt to prevent such invalidations, but users have ways to override it. This patch ensures the value is not overridden by the user. Author: Kyotaro Horiguchi Reviewed-by: Peter Smith, Alvaro Herrera Discussion: http://postgr.es/m/20231027.115759.2206827438943188717.horikyota.ntt@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +19 −0 |
| src/backend/replication/slot.c | modified | +5 −11 |
| src/backend/utils/misc/guc_tables.c | modified | +1 −1 |
| src/include/utils/guc_hooks.h | modified | +2 −0 |
Discussion
- A recent message added to pg_upgade 89 messages · 2023-10-27 → 2025-07-11