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 1nWoPM-0000qJ-4P for pgsql-committers@arkaria.postgresql.org; Tue, 22 Mar 2022 23:59:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nWoPK-0006BF-N9 for pgsql-committers@arkaria.postgresql.org; Tue, 22 Mar 2022 23:59:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWoPK-0006B5-Fy for pgsql-committers@lists.postgresql.org; Tue, 22 Mar 2022 23:59:22 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWoPH-0003en-VC for pgsql-committers@lists.postgresql.org; Tue, 22 Mar 2022 23:59:21 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 249C15C068B; Tue, 22 Mar 2022 19:59:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 22 Mar 2022 19:59:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=6aMPX6VjFnpi8xUYM2BK4LZvkBflTYt3G7E/n9 0TCHs=; b=ySJz1z6ZEvnYPCYT2sAXWadY+X/YF4BEEVRBZqWDhuvCaRegu/WL6C q+ftnfPgrq81vtsFKKS0ct0QDEvxIaGTkvXRPRd83jYNt2ukBCl58aBVkv1crIdp hRTlWvTwp0f+JGEXl452NVC578uetk1gohj8j4L2uWhP66xUoE9SOfSwv+dr53qo JmOltWD6uFNI/D/aO1Nw+QJYlilL3p9D9GeQSnMkliIBCPN3rW3HDFjW3nnlOFs+ q3En+gpH4vMtDuRbJXhwgk4k1M1mtxW5dfkRjnBbQ5SpE2WHeGeRXb9cX6KwBgkI 5KxiSXvk9HR4JbOQmmf8qQ9AUym4BItA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=6aMPX6VjFnpi8xUYM 2BK4LZvkBflTYt3G7E/n90TCHs=; b=fDMit7adC85O0HzrV30TEaWSsd6bEpxOv KtunPSVYfUdn/9+vYjXwv9Po3y3EjHRcYyGuAhLX8KwrQBzmQjI1XNlFGllj4Olp SEe4NVacYlX068ibBswYRBSBqn+8u0652v6QwB9BR3UlYd40qGNniceh1nGeDXVC n/Ugh+Dpmc0n/NzecGwvUbCBASHak178RbcUnHWR21GjVCMozPwrOwdNNedFeZSb W6nXWkZoXt+GzynW4LMge3Z3vqI8W9HvdJLTLkZFeUbx/e3PsjPEC01tDYulP5ZD M1wK3kGsjN8jp0DfbtNLfFv7pC9JzdBdQfS8uGKfT7hG7TE8PqCPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegiedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeetheehiefgudelhfevvddvtdejheehkeelteekveeggeduieelieduuefg fedtjeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgr iigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Mar 2022 19:59:18 -0400 (EDT) Date: Tue, 22 Mar 2022 16:59:17 -0700 From: Andres Freund To: Amit Kapila Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add ALTER SUBSCRIPTION ... SKIP. Message-ID: <20220322235917.5a7exsn5fkbnx6wp@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-03-22 01:56:03 +0000, Amit Kapila wrote: > Add ALTER SUBSCRIPTION ... SKIP. > > This feature allows skipping the transaction on subscriber nodes. > > If incoming change violates any constraint, logical replication stops > until it's resolved. Currently, users need to either manually resolve the > conflict by updating a subscriber-side database or by using function > pg_replication_origin_advance() to skip the conflicting transaction. This > commit introduces a simpler way to skip the conflicting transactions. > > The user can specify LSN by ALTER SUBSCRIPTION ... SKIP (lsn = XXX), > which allows the apply worker to skip the transaction finished at > specified LSN. The apply worker skips all data modification changes within > the transaction. This was missing an include of xlogdefs.h in pg_subscription.h, thus failing in headerscheck. See e.g. https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2022-03-22%2022%3A22%3A05 I've pushed the trivial fix for that. I'll propose adding headerscheck to CI / cfbot. Greetings, Andres Freund