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 1my9w8-0004Rd-DH for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Dec 2021 09:54:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1my9w7-0000ND-8m for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Dec 2021 09:53:59 +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 1my9w6-0000N3-Un for pgsql-hackers@lists.postgresql.org; Fri, 17 Dec 2021 09:53:58 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1my9w1-0005Hv-GO for pgsql-hackers@postgresql.org; Fri, 17 Dec 2021 09:53:58 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C7E665C01B9; Fri, 17 Dec 2021 04:53:51 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 17 Dec 2021 04:53:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=NqIEAAs2bLCd95C5OFGs3NpPiwvgbATeWIj7iXm47 NY=; b=FAeLO/y4USqVTL/w+OBW/Gr7gpJoSDcArR3lS0lwjcq7ElAyaatgSEgUw yR96qzAhyKxGGAoC6RwXRrlezp0Rqozepb8Fc5unkjrAR59D2VFdsDB4JdR9RVHA K16+qwNKRzcdk+dDXEf6AAku7jYBe/EqeqSmX73RglzZmhR+zVWL6IEhRnU9L9Di Yfn7xaqxD4/dQWyBJtrpTmCg7gH3ZyR83fSO/tV4uWWxKxmGqr2nCCIWtpZTto89 jvpg/Tur5wEnMlk7DW2mb7qB/FitnAwpbDr/WscWZydp74PH8qTsakwYYsgXI9mo /AxnR+AXFKQOeaAPs7bGuouPTaN0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrleeigddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveevudel ueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Dec 2021 04:53:49 -0500 (EST) Message-ID: <6c5d98c6-879d-690c-b769-96aa162b93d9@enterprisedb.com> Date: Fri, 17 Dec 2021 10:53:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: Skipping logical replication transactions on subscriber side Content-Language: en-US To: Greg Nancarrow , Masahiko Sawada Cc: Amit Kapila , "houzj.fnst@fujitsu.com" , vignesh C , "tanghy.fnst@fujitsu.com" , "osumi.takamichi@fujitsu.com" , Alexey Lesovsky , PostgreSQL-development References: From: Peter Eisentraut 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 On 13.12.21 04:12, Greg Nancarrow wrote: > (ii) "Setting -1 means to reset the transaction ID" > > Shouldn't it be explained what resetting actually does and when it can > be, or is needed to be, done? Isn't it automatically reset? > I notice that negative values (other than -1) seem to be regarded as > valid - is that right? > Also, what happens if this option is set multiple times? Does it just > override and use the latest setting? (other option handling errors out > with errorConflictingDefElem()). > e.g. alter subscription sub skip (xid = 721, xid = 722); Let's not use magic numbers and instead use a syntax that is more explicit, like SKIP (xid = NONE) or RESET SKIP or something like that.