Allow logical_replication_max_snap_files = -1

which disables the mechanism.
This commit is contained in:
Arseny Sher
2024-08-12 19:28:03 +03:00
committed by Arseny Sher
parent 32aa1fc681
commit d24f1b6c04

View File

@@ -68,10 +68,10 @@ InitLogicalReplicationMonitor(void)
DefineCustomIntVariable(
"neon.logical_replication_max_snap_files",
"Maximum allowed logical replication .snap files",
"Maximum allowed logical replication .snap files. When exceeded, slots are dropped until the limit is met. -1 disables the limit.",
NULL,
&logical_replication_max_snap_files,
300, 0, INT_MAX,
300, -1, INT_MAX,
PGC_SIGHUP,
0,
NULL, NULL, NULL);