You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by ma...@apache.org on 2024/12/23 11:11:03 UTC

(cloudberry) 08/23: Allow max_replication_slots=0

This is an automated email from the ASF dual-hosted git repository.

maxyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 2da8ab93a7b9cdfa711de2aa3d86620049443a32
Author: Soumyadeep Chakraborty <so...@gmail.com>
AuthorDate: Thu May 19 14:57:55 2022 -0700

    Allow max_replication_slots=0
    
    In 06e7bf3269c, the minimum value for max_replication_slots was reset to
    1, as we always assumed that we are setting up a mirrored cluster at
    gpinitsystem time. With mirrorless deployments now being supported, this
    assumption no longer holds true. Thus, we should allow a min value of 0
    like upstream, which we will default to/recommend in mirrorless
    settings.
---
 src/backend/utils/misc/guc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 1adc0ddf43..65d2c3dadb 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -2972,7 +2972,7 @@ static struct config_int ConfigureNamesInt[] =
 			NULL
 		},
 		&max_replication_slots,
-		10, 1, MAX_BACKENDS /* XXX? */ ,
+		10, 0, MAX_BACKENDS /* XXX? */ ,
 		NULL, NULL, NULL
 	},
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org