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 1qRpQE-003H5j-T9 for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Aug 2023 07:40:31 +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 1qRpQD-004znO-4M for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Aug 2023 07:40:29 +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 1qRpQC-004znF-R8 for pgsql-hackers@lists.postgresql.org; Fri, 04 Aug 2023 07:40:29 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qRpQ9-000SeU-S6 for pgsql-hackers@postgresql.org; Fri, 04 Aug 2023 07:40:27 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe2bc2701bso17108485e9.2 for ; Fri, 04 Aug 2023 00:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691134824; x=1691739624; 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=3kOeYJXPehZrzX4aCGMWj/I0xRMSHeREqP4rGkW/AjQ=; b=dDkQYvMcVNocqM3x58gb/3Uyr8ltEPJ0BZjmNfjHAdKb3tHpeJRm967gooXxvxg5gT oxzZRfpzAmqb+kVbBL+RSJjUOHaFuwxtZPCfMfcWEXJFSnn13/UkbzSbbvpzDayVjV67 dOq5zK0lZzGJdALu0DaR9znLZVNz/6KXHATUKps9KuwE9fxZN1ZGE9JyM2oTtRxCcbee 25Ml/GcwH7WvI7/FifvspVmzuiO7s2ybLdMFitZDnsCt3Tze1TSwRXhGlz9EU6jcma67 61xXA2Ty37ODo/KZWzToVTLxPQbSwDsZHxe/poqtPd2QXFe+IY+6DgTRubm77pSLmfKR WSQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691134824; x=1691739624; 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=3kOeYJXPehZrzX4aCGMWj/I0xRMSHeREqP4rGkW/AjQ=; b=UEyZBHPfRN//8e9jzE68rVQz9xWvqdBGswgGVDZ4h5mF0UhJHgZagIVs6mRhzm5NY8 pRT7Suk8UWPoR2LvwUwQME9QVkC1cKpuloh63Ht7R0ghzdPCTIcYNkKnmQcObLn0rZD7 sSMp7KJ6RQsAaQaIvA5uaoM2/g9gdAFqB32biZXVL6RNUcEE9ltvZBpKQonDRHko2lD3 2GekcmkCFfl8gEHKvm5Bj0dGCya+5Ite6HMSqPHrQOO/2zDPl8pnbqSzyoEwITP3vkPV m43aLpvNNfNkq1qwjwM73EU+cQ+BTptT4QZpn8mqrLLMB4T6gVh2/cCcXl5OUhe+Qv/c /nZA== X-Gm-Message-State: AOJu0YwwY8ZKOFMFJzknCzlJvNgUxKgxtm5bS0vv2oe+gUQgQTUPBaho AgWqZzLQSqP1QEBtBm17OgI= X-Google-Smtp-Source: AGHT+IHbcHmdqqYyV70RTiZFU40zNNiJVDnAtrrIan8u8FgUyf5mYQ6UqifIFYA2BMxfeoXfVmDsoA== X-Received: by 2002:a7b:cbd6:0:b0:3fc:5a3:367c with SMTP id n22-20020a7bcbd6000000b003fc05a3367cmr832518wmi.32.1691134823413; Fri, 04 Aug 2023 00:40:23 -0700 (PDT) Received: from ?IPV6:2a01:cb11:55e:1700:9da0:dd44:7cab:18d0? ([2a01:cb11:55e:1700:9da0:dd44:7cab:18d0]) by smtp.gmail.com with ESMTPSA id 9-20020a05600c228900b003fe13c3ece7sm6141639wmf.10.2023.08.04.00.40.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Aug 2023 00:40:22 -0700 (PDT) Message-ID: <90c1f8db-9756-383d-627a-ced3356e15c7@gmail.com> Date: Fri, 4 Aug 2023 09:40:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Synchronizing slots from primary to standby To: Bharath Rupireddy , shveta malik Cc: Amit Kapila , Peter Eisentraut , Bruce Momjian , Ashutosh Sharma , Andres Freund , pgsql-hackers References: <514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com> <646acd8d-9896-ed8d-2ab4-0bf11b3285d4@enterprisedb.com> <20220205195944.drwc3psrb5udt2cw@alap3.anarazel.de> <20220207203222.22aktwxrt3fcllru@alap3.anarazel.de> 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 7/24/23 4:32 AM, Bharath Rupireddy wrote: > On Fri, Jul 21, 2023 at 5:16 PM shveta malik wrote: > Here are my thoughts about this feature: Thanks for looking at it! > > Important considerations: > > 1. Does this design guarantee the row versions required by subscribers > aren't removed on candidate standbys as raised here - > https://www.postgresql.org/message-id/20220218222319.yozkbhren7vkjbi5%40alap3.anarazel.de? > > It seems safe with logical decoding on standbys feature. Also, a > test-case from upthread is already in patch sets (in v9 too) > https://www.postgresql.org/message-id/CAAaqYe9FdKODa1a9n%3Dqj%2Bw3NiB9gkwvhRHhcJNginuYYRCnLrg%40mail.gmail.com. > However, we need to verify the use cases extensively. Agree. We also discussed up-thread that we'd have to drop any "sync" slots if they are invalidated. And they should be re-created based on the synchronize_slot_names. > Please feel free to add the list if I'm missing anything. > We'd also have to ensure that "sync" slots can't be consumed on the standby (this has been discussed up-thread). Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com