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 1pSIgA-00043A-Ln for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Feb 2023 14:22:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pSIg8-00015b-Aa for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Feb 2023 14:22:36 +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 1pSIg7-00015R-VL for pgsql-hackers@lists.postgresql.org; Wed, 15 Feb 2023 14:22:36 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pSIg4-0005OW-K0 for pgsql-hackers@postgresql.org; Wed, 15 Feb 2023 14:22:35 +0000 Received: by mail-wm1-x334.google.com with SMTP id f47-20020a05600c492f00b003dc584a7b7eso1690787wmp.3 for ; Wed, 15 Feb 2023 06:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zlg87b75eJu3Q3ZKnxFHnAKyUl/QmQiuZiu0McOsbWk=; b=cMvYxSrMUfI7silyG/kQyYmJJLq/Shpwb/GHM698FsZwAstqDReSEZWK7re1agkw/R nToa4EA2imvdKu4/lIiLzJDgFFsFWaoy0D8OZdEo/LYGRsjJH2o4IXsCIY4JZhg7Dttt GtxWsu120ksqhuh24Ab93tAcZEpJjYZlO1w5RGhz+qq+4Sr6lclKMqMDUCW0NOzhUxvv jU4/kHz0bOBUxxsYQuib3V6emITvdCvaZFPSegr3j3pZ4sqRX5RWDbJg1kxC2RdMz1fR whnIA0XYXBIOMxP9lN/Oj7NIOiUHYCtPN50lhLtXj7ShTOG3gMIkUipvCluHqY2W5bMR s6Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zlg87b75eJu3Q3ZKnxFHnAKyUl/QmQiuZiu0McOsbWk=; b=u8Tz5B0N4nhGCxNXdhQ+oUObr/FcD89f+hxhTssONTCDewuBlO4k3VvyBOA+0wdbW+ m/AXOS2Gg1+EcTQKih1gRnTIDnAtaiTay8jlgGWEzOl0G4nof/YlDX3Gu7Am0WwaiTq1 OMiAyLH5QnSy3US0sDKs2IZz5QjfqPrlzsj3t3bXy3HQReG9q4EQ+/H9i4jQsRKJM8Aa cq4YVLHuI2nqPpO7XqnkrO8i4DSwUurqc5IEurUdLN26qsoy2IuNGRK+Jbm3j29K60kD zC/kmE3stL8u58zAjsR4/EiqAZ0TkOTcA5tdHt6D7O+drnTQu0Eot8f3rF/7P0DkPoYN X0rg== X-Gm-Message-State: AO0yUKVCxoHaDsjh43Tt0q4B802JAHhpQwveWCj6Gjnvdvo6VRgVAsTb NmPrPTueCzVzBLyDHRsiIOc= X-Google-Smtp-Source: AK7set9uSHPjy6tyDIp6HnRFWZCPqe1Ojv/R7V/tZfPuXlg4HHltKlneXKYMLcXX8KiCAk6wyJMZoQ== X-Received: by 2002:a05:600c:1c29:b0:3df:9858:c02e with SMTP id j41-20020a05600c1c2900b003df9858c02emr3401556wms.3.1676470950688; Wed, 15 Feb 2023 06:22:30 -0800 (PST) Received: from [192.168.20.42] ([54.239.6.185]) by smtp.gmail.com with ESMTPSA id c3-20020a7bc843000000b003d9aa76dc6asm2203037wml.0.2023.02.15.06.22.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Feb 2023 06:22:30 -0800 (PST) Message-ID: Date: Wed, 15 Feb 2023 15:21:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: Minimal logical decoding on standbys Content-Language: en-US To: Ashutosh Sharma , Andres Freund Cc: Robert Haas , Thomas Munro , Alvaro Herrera , Ibrar Ahmed , Amit Khandekar , fabriziomello@gmail.com, tushar , Rahila Syed , pgsql-hackers References: <1f2ad9fd-53ff-74cc-a602-72d45423bcab@gmail.com> <05c0c4f3-82eb-bc6d-c876-5a265c05927b@gmail.com> <20230106034036.2m4qnn7ep7b5ipet@awork3.anarazel.de> <805540ba-b132-30f2-563d-cf9acc527008@gmail.com> <2d62f212-fce6-d639-b9eb-2a5bc4bec3b4@gmail.com> <20230112181630.lpqqty2vzuatgwcl@awork3.anarazel.de> From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2/15/23 1:32 PM, Ashutosh Sharma wrote: > Thanks Andres. I have one more query (both for you and Bertrand). I > don't know if this has already been answered somewhere in this mail > thread, if yes, please let me know the mail that answers this query. > > Will there be a problem if we mandate the use of physical replication > slots and hot_standby_feedback to support minimum LD on standby. I don't think we have to make it mandatory. There is use cases where it's not needed and mentioned by Andres up-thread [1] (see the comment "The patch deals with this...") > I know people can do a physical replication setup without a replication > slot or even with hot_standby_feedback turned off, but are we going to > have any issue if we ask them to use a physical replication slot and > turn on hot_standby_feedback for LD on standby. This will reduce the > code changes required to do conflict handling for logical slots on > standby which is being done by v50-0001 and v50-0002* patches > currently. > But on the other hand we'd need to ensure that the primary physical slot and HSF set to on on the standby are always in place. That would probably lead to extra code too. I'm -1 on that but +1 on the fact that it should be documented (as done in 0006). Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com [1]: https://www.postgresql.org/message-id/20211028210755.afmwcvpo6ajwdx6n%40alap3.anarazel.de