diff options
| author | Amit Kapila | 2023-11-10 03:15:01 +0000 |
|---|---|---|
| committer | Amit Kapila | 2023-11-10 03:15:01 +0000 |
| commit | 8bfb231b43d7f6058041483f2b823dd52eac7bf8 (patch) | |
| tree | 311e53b4233a5db636bc0170d237622dabb5e3d5 /src/backend/utils | |
| parent | 5ba1ac99a8d8623604d3152be8fd9a201ba5240b (diff) | |
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/[email protected]
Diffstat (limited to 'src/backend/utils')
| -rw-r--r-- | src/backend/utils/misc/guc_tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index beed72abbd6..b764ef69980 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -2845,7 +2845,7 @@ struct config_int ConfigureNamesInt[] = }, &max_slot_wal_keep_size_mb, -1, -1, MAX_KILOBYTES, - NULL, NULL, NULL + check_max_slot_wal_keep_size, NULL, NULL }, { |
