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.96) (envelope-from ) id 1wIiKZ-008PaY-1e for pgsql-hackers@arkaria.postgresql.org; Fri, 01 May 2026 07:30:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wIiKY-00AM2q-2L for pgsql-hackers@arkaria.postgresql.org; Fri, 01 May 2026 07:30:34 +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.96) (envelope-from ) id 1wIiKY-00AM2h-0q for pgsql-hackers@lists.postgresql.org; Fri, 01 May 2026 07:30:34 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wIiKV-00000003eIX-3nwG for pgsql-hackers@lists.postgresql.org; Fri, 01 May 2026 07:30:33 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 1AF3BEC00D0; Fri, 1 May 2026 03:30:31 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 01 May 2026 03:30:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1777620631; x=1777707031; bh=v Oat2TgHWg5bfmqjXIS7sH7adQtaAAhKezd6ZAWB8zw=; b=vSelQJDS83Jkc4YtX 8grGX6eGsE/5JxkVkJIJMu8PAKzh2BNOuIr2IaKrOwBO5ASTxUpFWKb/qbH+CqZQ bp2LfyTsuhNu8bdldxeFT3F0VLpsq2wpzZwhY4Fxl8af6zGzsm9e5/UCJo+qXD7V kE9+761zi5hqWYyVkZk7vo5pCYj1IxAEf9bD5koE7NR/MsFUZA5AZ5ugb/8L1rEQ K6482pWDF4kAJGqhcR7Qoo32bK9WyrnksCHk1Yg1AJGLG9t5oGAnq8TI1DRH/vlL 5jO604bQHtVmRMLWRJmfcXP+KNpYl7Vg2nECI+aYiIH3M/RIqLGjlsLwOisAGOUV FE3wA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdekleeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehmkeerredttdejnecuhfhrohhmpedktehlvhgrrhho ucfjvghrrhgvrhgrkdcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeegveetudffveeihedtieegudfgudethfelvdeitdegleff fedvuedvgefhueehgeenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpthhtohepkedpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtoheprghhsegthigsvghrthgvtgdrrghtpdhrtghp thhtohepkhhurhhouggrrdhhrgihrghtohesfhhujhhithhsuhdrtghomhdprhgtphhtth hopegrmhhithdrkhgrphhilhgrudeisehgmhgrihhlrdgtohhmpdhrtghpthhtohepsgho vghkvgifuhhrmhdophhoshhtghhrvghssehgmhgrihhlrdgtohhmpdhrtghpthhtohepmh hihhgrihhlnhhikhgrlhgrhigvuhesghhmrghilhdrtghomhdprhgtphhtthhopehsrhhi nhgrthhhvddufeefsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtg hkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprhho sgesgiiiihhllhgrrdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 May 2026 03:30:30 -0400 (EDT) Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 137CBB03269; Fri, 01 May 2026 09:30:27 +0200 (CEST) Date: Fri, 1 May 2026 09:30:27 +0200 From: 'Alvaro Herrera' To: "Hayato Kuroda (Fujitsu)" Cc: Mihail Nikalayeu , Antonin Houska , Srinath Reddy Sadipiralla , Amit Kapila , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="k6vxbflu22czkb7a" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --k6vxbflu22czkb7a Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello, On 2026-Apr-07, Hayato Kuroda (Fujitsu) wrote: > 01. > ``` > --- a/src/backend/access/index/genam.c > +++ b/src/backend/access/index/genam.c > @@ -394,6 +394,14 @@ systable_beginscan(Relation heapRelation, > SysScanDesc sysscan; > Relation irel; > > + /* > + * If this backend promised that it won't access shared catalogs during > + * logical decoding, this it the right place to verify. > + */ > + Assert(!HistoricSnapshotActive() || > + accessSharedCatalogsInDecoding || > + !heapRelation->rd_rel->relisshared); > ``` > > Not sure it's OK to use Assert(). elog(ERROR) might be better if we want to really > avoid the case. How about the attached? -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ --k6vxbflu22czkb7a Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-Turn-protective-Assert-into-elog-ERROR.patch"