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 1rCb5j-00Ga8w-0x for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2023 07:52:39 +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 1rCb5g-00BmMI-Uq for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2023 07:52:36 +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 1rCb5g-00BmMA-LE for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2023 07:52:36 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rCb5d-00BLOm-PK for pgsql-hackers@postgresql.org; Mon, 11 Dec 2023 07:52:36 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-334b2ffaa3eso3771610f8f.0 for ; Sun, 10 Dec 2023 23:52:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702281150; x=1702885950; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kMEA2bt9yJZNfFfAlDicHEJKdR4fMNj8jdjthRMVpZU=; b=S2a5ZK94dNyDs3G0bGv/SROFSSa0i1p30My6HnxbvXOhyPpciqF1LiU0YSF9AXiwcS Ey0Zy1fZ0JGxOfDi8Unl1aDf7AWryIJ9TV3+1ixCoWZ0zRArLdFian9R4wBxBhn6Fuqp gQCRHa1MPhEPGdflLvkuDc/CY2YI8bmGXTecnzyTD3iA9vx5AeZD3wCvoKNPZRFzhjhU MxZr57TBeAcayPnayiVGDLETutCgr46P46RkoykrUYzo1tOIgnEX8lr7YRZx+IOLTM1S +Y8vVUJKUFotTDZTofccQICFAPWjAqbrLjxr5Y1Ux+cwkBwKKLuZ7dcUFVAnAFpVy7wF hj1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702281150; x=1702885950; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kMEA2bt9yJZNfFfAlDicHEJKdR4fMNj8jdjthRMVpZU=; b=uLSmbNKpk1s0GkvaYdr3+XWfebtaxtw+EvAA7uF36V99s1jD667J035Y13BRTzdLLE thMRDuYbemWYnOKA6CK+EA+MKUz5IpODi4SBlKxNk8igpb4hW+fPCm3VVbvhIdbce/cS vJzpO7lmMRf9kgm/EfmcfvrVVmuggoJ75U8xzUI3gzqrvz6k72fFvmGf4VF67+iMwOWe 7hJ0K9fNoR9mKKiEC2LB0joe45ovEmlooFoVF3lSdsLRGylKHQda+9nL1qBE2AH1ykah kFkuomvkwGYYSNlKSTAFVyKVaAI459wP3/PpPaEeg01xrqWIvLdzWNLnW/0pVDb5DSFJ 9PFw== X-Gm-Message-State: AOJu0YwIT2OqB6N46yZmx6B4YTcJ2QdJElhhlTkYqBbdX5jL3Mq6lh0w SoYmLKFhE0Xn37BjdWf2CD4= X-Google-Smtp-Source: AGHT+IG29l6Gey9OOG2D21il3lm9J7O83AoTD4uRsYJgqMMKb0NgQIRco8JffMwROBnkmg+WzASh+A== X-Received: by 2002:a5d:4b0f:0:b0:336:1032:7515 with SMTP id v15-20020a5d4b0f000000b0033610327515mr2109204wrq.99.1702281149543; Sun, 10 Dec 2023 23:52:29 -0800 (PST) Received: from ?IPV6:2a01:cb11:192:7000:75fc:8bab:dd47:ce48? ([2a01:cb11:192:7000:75fc:8bab:dd47:ce48]) by smtp.gmail.com with ESMTPSA id c11-20020a5d4ccb000000b00334b29127c9sm7907315wrt.51.2023.12.10.23.52.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Dec 2023 23:52:29 -0800 (PST) Message-ID: <25e30b80-14cc-4dce-a4d0-8715181cd26b@gmail.com> Date: Mon, 11 Dec 2023 08:52:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Synchronizing slots from primary to standby To: Amit Kapila , shveta malik Cc: 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 References: <6694284d-c847-42df-8f76-6efa8eeeb0df@gmail.com> <2fdc471d-2eee-4c29-9f26-d7f5dcc8cd53@gmail.com> Content-Language: en-US From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 12/8/23 10:06 AM, Amit Kapila wrote: > On Wed, Dec 6, 2023 at 4:53 PM shveta malik wrote: >> >> PFA v43, changes are: >> > > I wanted to discuss 0003 patch about cascading standby's. It is not > clear to me whether we want to allow physical standbys to further wait > for cascading standby to sync their slots. If we allow such a feature > one may expect even primary to wait for all the cascading standby's > because otherwise still logical subscriber can be ahead of one of the > cascading standby. I've the same feeling here. I think it would probably be expected that the primary also wait for all the cascading standby. > I feel even if we want to allow such a behaviour we > can do it later once the main feature is committed. Agree. > I think it would > be good to just allow logical walsenders on primary to wait for > physical standbys represented by GUC 'standby_slot_names'. That makes sense for me for v1. > 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). Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com