Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qB7zt-0000yK-Sy for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jun 2023 06:04:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qB7zr-0004ZU-KT for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jun 2023 06:04:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qB7zr-0004ZL-Al for pgsql-hackers@lists.postgresql.org; Mon, 19 Jun 2023 06:04:15 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qB7zo-003Msu-Kt for pgsql-hackers@postgresql.org; Mon, 19 Jun 2023 06:04:14 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-311099fac92so3626696f8f.0 for ; Sun, 18 Jun 2023 23:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687154651; x=1689746651; 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=pzQBZNg1sM20B0RBw+nI9kXVZayoJCkU4/pFeXvwPR0=; b=XsDz4at1VUuBVPG0rLlsILqQ88oUA/xMwE+3RtfzKMaRR2i6TEuXFbL/BC7f328pEm 5u0RC3d9hp7uWikYv7MaUA/75KC/erI6Vw4MxCH2M9JRqhHZ+s2G3eYPiDmSUDG9VS4e 21D+uKJTwGDBeyAeSDXLrCuJRRAIMYKY6EaDcXRunjlzGErsHiBz57jEXg2p/KEBCLw2 x26SpU49kGqfwtAnG12KbcZmIIxkxr1/tIUL0Sxpzml8nMkY2acGIzt1CMh1Epli5U/Y pOXh9XRnjGazkA7nRbHfxUuD7o5Cxwr/FKwnvAAO5+1L6vEurh1CT8Ah+7250Smr/B20 cUCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687154651; x=1689746651; 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=pzQBZNg1sM20B0RBw+nI9kXVZayoJCkU4/pFeXvwPR0=; b=Dd2blwSeO/iwSZ2oLEu99HBvXjHwnVcyEgbFH2i01XCd+q9x2RarLCpw99owVf5fzH HfNUjhwZNdoLRiahR5/tLuRL06uHSMIwR+60tH7j9gBwUrLod6P1KN/Fp2yqmhz817nT ncQ88TJKcU46NhbiZmu91K+TZmMNCtzV1KmCHqgzUq454jv7qcdg7UkxTlocRI9dJO6Z Lln+IxgjPxJXtIaor4HD9o7n76wriDhW/Aj6WoWf5eaJVlZL4LNxZ+ps5KlR8Qj70Tkj wxh59nb1v61AY+ParqRxd8pJvEgkvnpBbeGIwTfdctf1DrAbO3SOD7fruOsqBAaNfyMh abPw== X-Gm-Message-State: AC+VfDyGd3jW4zY/ZL/cLNEgapDDOAI8AEYUeRy35IzdPJwv9QADRYJA 8sfaXz3HOK15drAQbSoBmdw= X-Google-Smtp-Source: ACHHUZ6nqShPCBzN57jjJsD6uNkitFgM1d+xNUmXsPGDR9mTJCbGmh+Rf2SEviORGhHYEAn2w+Jhsg== X-Received: by 2002:a05:6000:1cc:b0:30f:cb22:e6d6 with SMTP id t12-20020a05600001cc00b0030fcb22e6d6mr6761588wrx.7.1687154650412; Sun, 18 Jun 2023 23:04:10 -0700 (PDT) Received: from [192.168.3.201] ([54.239.6.184]) by smtp.gmail.com with ESMTPSA id l6-20020a5d4bc6000000b003047ae72b14sm30536820wrt.82.2023.06.18.23.04.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Jun 2023 23:04:10 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2023 08:02:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Synchronizing slots from primary to standby To: Amit Kapila Cc: Peter Eisentraut , Bruce Momjian , Ashutosh Sharma , Andres Freund , pgsql-hackers References: <514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com> <18dbc929-a281-8552-4f1d-7e4d0e4eedba@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 6/16/23 11:56 AM, Amit Kapila wrote: > On Mon, Apr 17, 2023 at 7:37 PM Drouvot, Bertrand > wrote: >> >> Please find attached V5 (a rebase of V4 posted up-thread). >> >> In addition to the "rebasing" work, the TAP test adds a test about conflict handling (logical slot invalidation) >> relying on the work done in the "Minimal logical decoding on standby" patch series. >> >> I did not look more at the patch (than what's was needed for the rebase) but plan to do so. >> > > Are you still planning to continue working on this? Yes, I think it would be great to have such a feature in core. > Some miscellaneous > comments while going through this patch are as follows? Thanks! I'll look at them and will try to come back to you by mid of next week. Also I think we need to handle the case of invalidated replication slot(s): should we drop/recreate it/them? (as the main goal is to have sync slot(s) on the standby). Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com