Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSZF2-00EXC6-1K for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jan 2024 09:08:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rSZEy-003WJq-Mu for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jan 2024 09:08:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSZEy-003WJh-As for pgsql-hackers@lists.postgresql.org; Wed, 24 Jan 2024 09:08:12 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rSZEr-0036NR-IG for pgsql-hackers@postgresql.org; Wed, 24 Jan 2024 09:08:11 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40e8fec0968so67264225e9.1 for ; Wed, 24 Jan 2024 01:08:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706087283; x=1706692083; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=f/ol9TK9bnUGIhCkB2oTFJGwg4YWObTD+72hcHWCvTU=; b=B7SJ4jMh/3Rlz/KJrkETIg7DBxROafE5mBePth8OptM+SwrTE5n8mLoJP/J87W4QNz F04+gcy2cNRaOOH/d8A5ICM9JPeWJ/rmk6WzZef0ixPi084lwbOd5jaxdyfmj19zADer O496qbNt9gJTDE7DjOFiqit1wvvGBRc7IZXFZR7HTQyDBcmsw57hHs1UBI8RJ3j8eFLG aGJgfg0cErkY3tJSYz+RtoLu4NMgN1sO+avV7e96qWLHX+9iaB/NjSS81xKiKsq1UW9p KrHSQfqO9Cncmr1rg8kH761oqKdwWOGoUNOl5+CEbGvjVNvO5SsxbVqKuyK6/YWgg8RE ONig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706087283; x=1706692083; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f/ol9TK9bnUGIhCkB2oTFJGwg4YWObTD+72hcHWCvTU=; b=pCU9icQ2DctnYH+AYl5W/LjahB/yRl+MGnjbrKGqdRwLgfItYbdZSruLtJov2tsVD9 0aIDJL3b/lD7k7QJfL/0Uhclz83QDIlbgA/Blx37xhTfYKVPMCwC9dqfeAbd+3lGbUWp t0t/9M0IC0qazKnsKdc06IA1Zh4S4qh/I4bEdUJmMlHxbJeUZVM0iVT2ZKAjjdG8/jfh c0epHuxAa9atR3RvyDXkkOvdP3TEgZ9fj/aW6ts91WNT734wzYLhuFVKBKG4ZboYO9KM JjIem/jFgK+/0Z6Wu/zGmfvkL/kjVx7iDR5NqZnwak5YBLMoiy5eA1llAAbeQyYVDrwB F2Gw== X-Gm-Message-State: AOJu0Yxq6/a/XnhhCSZ39lFiDdOMPVjV9Is2GjiL9n/A9VN1+sy4q1It VN4s3YzGXxwT3mdCbX/upBzXafyqEeKx8APFWazrRNWi9NYuLS7Y X-Google-Smtp-Source: AGHT+IHr40jrE9s3Jz5hk2jB3r5ERosz9e3tZ327zJ4Nq8ofbGqBIJ2cesB6Uznh2U463nGfPVDCJw== X-Received: by 2002:a05:600c:3b9d:b0:40e:8a66:5b81 with SMTP id n29-20020a05600c3b9d00b0040e8a665b81mr971151wms.135.1706087282648; Wed, 24 Jan 2024 01:08:02 -0800 (PST) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-236-134-5.eu-west-3.compute.amazonaws.com. [15.236.134.5]) by smtp.gmail.com with ESMTPSA id u21-20020a05600c139500b0040e4a7a7ca3sm45099704wmf.43.2024.01.24.01.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 01:08:02 -0800 (PST) Date: Wed, 24 Jan 2024 09:08:00 +0000 From: Bertrand Drouvot To: Amit Kapila Cc: Masahiko Sawada , shveta malik , "Zhijie Hou (Fujitsu)" , Dilip Kumar , Peter Smith , Nisha Moond , "Hayato Kuroda (Fujitsu)" , Bharath Rupireddy , Peter Eisentraut , Bruce Momjian , Ashutosh Sharma , Andres Freund , pgsql-hackers , Ajin Cherian , Alvaro Herrera Subject: Re: Synchronizing slots from primary to standby Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Wed, Jan 24, 2024 at 01:51:54PM +0530, Amit Kapila wrote: > On Wed, Jan 24, 2024 at 11:24 AM Masahiko Sawada wrote: > > > > On Wed, Jan 24, 2024 at 2:43 PM Amit Kapila wrote: > > > > > > > > > > > +/* GUC variable */ > > > > +bool enable_syncslot = false; > > > > > > > > Is enable_syncslot a really good name? We use "enable" prefix only for > > > > planner parameters such as enable_seqscan, and it seems to me that > > > > "slot" is not specific. Other candidates are: > > > > > > > > * synchronize_replication_slots = on|off > > > > * synchronize_failover_slots = on|off > > > > > > > > > > I would prefer the second one. Would it be better to just say > > > sync_failover_slots? > > > > Works for me. But if we want to extend this option for non-failover > > slots as well in the future, synchronize_replication_slots (or > > sync_replication_slots) seems better. We can extend it by having an > > enum later. For example, the values can be on, off, or failover etc. > > > > I see your point. Let us see if others have any suggestions on this. I also see Sawada-San's point and I'd vote for "sync_replication_slots". Then for the current feature I think "failover" and "on" should be the values to turn the feature on (assuming "on" would mean "all kind of supported slots"). Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com