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 1rDHW8-001WWd-Gx for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Dec 2023 05:10:44 +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 1rDHW5-00BJ6V-Ks for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Dec 2023 05:10:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDHW5-00BJ6N-BB for pgsql-hackers@lists.postgresql.org; Wed, 13 Dec 2023 05:10:41 +0000 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rDHW2-00Bjkv-La for pgsql-hackers@postgresql.org; Wed, 13 Dec 2023 05:10:40 +0000 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-20311257937so656419fac.0 for ; Tue, 12 Dec 2023 21:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702444236; x=1703049036; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2f3XR6AAYg/UOahG5AT1vkmLduHWKQuLGYzcOW9W87c=; b=OiMJF8GEaVTZKBwYrSV3MGFjxXTVDeQM+eneUUYHoTt9RxWUR70uAMRUF65zYlkCOU nUD+NWeMkEtDbvh/Q5kss2f0mXa5LPiRVv9MPqQOBNboyzOEueJ9B7T4TLFNK/G1ubbd y/4rBjnK+aob0OnpslaG5i//jd9UspBN43iMvm1+WXN5ffScNNecJrxTelF5k8EYFYdz Rm+EO8qiy2eQB2wEATU0aoiekqVvT1U229r5SCz4wKoC9WV5/ttp8rz7xeFlOyorxEYx Hlcpq6QvVuXC84Q9V31Qn8FPBMATIuUtta5/Bhz6eZXnRfkL5TcKHAycbKL+4PgQpTfm cT7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702444236; x=1703049036; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2f3XR6AAYg/UOahG5AT1vkmLduHWKQuLGYzcOW9W87c=; b=UGPfK121bfSNYEPGQbZKbimtkjMQokmkxe+Gjk7VqcUxBGAysBDVbt80fVrIMI8GaB jzJ3at23ZsLAPfDstm/QO53TZjlh2nQvkRSQjNFA6FmVJLckNDt2/Ze1OpWiGqp+QoEA vMxMeGCQjqEGqswdyYUCdeTu4PMXRAwHA+mG2Qne3QNTxLahA5wnfR7wazWLNDUv8+0A TfejT7PphlZSGD9uDUjOrS0wgoQm893XghWILbw1CkRKhOCesWyyJcoI5n5U2z+YJL7F UXXK2qPnB0lIeyrNBjTMDob/ouQiDa42fquzmKPnKYKH74R+qJAYFLt9LNsVFpZ7ihfd YPTg== X-Gm-Message-State: AOJu0Yyzo68Ruxg4pJHDfq0o04EE0rwnpHJ9Zw+1QRxL0cspylOFJlhl 5r+dRSVbo5tv8FaV850YpXwWjqEUDNuTNKJHqh4= X-Google-Smtp-Source: AGHT+IE+bbfc8h2FTzBsjshopOvb4nVB2gK86kt31wTLz9RsO2ctE4eqclWU547UpJfyYdSaPWnc23iASgtXJ1G11aM= X-Received: by 2002:a05:6870:7026:b0:203:24a4:3827 with SMTP id u38-20020a056870702600b0020324a43827mr437782oae.24.1702444236329; Tue, 12 Dec 2023 21:10:36 -0800 (PST) MIME-Version: 1.0 References: <6694284d-c847-42df-8f76-6efa8eeeb0df@gmail.com> <2fdc471d-2eee-4c29-9f26-d7f5dcc8cd53@gmail.com> <25e30b80-14cc-4dce-a4d0-8715181cd26b@gmail.com> In-Reply-To: From: Amit Kapila Date: Wed, 13 Dec 2023 10:40:24 +0530 Message-ID: Subject: Re: Synchronizing slots from primary to standby To: shveta malik Cc: "Drouvot, Bertrand" , Nisha Moond , "Zhijie Hou (Fujitsu)" , Peter Smith , "Hayato Kuroda (Fujitsu)" , Bharath Rupireddy , Peter Eisentraut , Bruce Momjian , Ashutosh Sharma , Andres Freund , pgsql-hackers , Ajin Cherian , Alvaro Herrera Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Dec 11, 2023 at 5:13=E2=80=AFPM shveta malik wrote: > > On Mon, Dec 11, 2023 at 1:22=E2=80=AFPM Drouvot, Bertrand > wrote: > > > > > If we agree > > > on that then it would be good to prohibit setting this GUC on standby > > > or at least it should be a no-op even if this GUC should be set on > > > physical standby. > > > > I'd prefer to completely prohibit it on standby (to make it very clear = it's not > > working at all) as long as one can enable it without downtime once the = standby > > is promoted (which is the case currently). > > And I think slot-sync worker should exit as well on cascading standby. Th= oughts? > I think one has set all the valid parameters for the slot-sync worker on standby, we should not exit, rather it should be no-op which means it should not try to sync slots from another standby. One scenario where this may help is when users promote the standby which has already synced slots from the primary. In this case, cascading standby will become non-cascading and should sync slots. --=20 With Regards, Amit Kapila.