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.94.2) (envelope-from ) id 1u9K4C-000VWv-S3 for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Apr 2025 08:42:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u9K4A-00Cr5L-QK for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Apr 2025 08:42:19 +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.94.2) (envelope-from ) id 1u9K4A-00Cr5D-Hv for pgsql-bugs@lists.postgresql.org; Mon, 28 Apr 2025 08:42:19 +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.96) (envelope-from ) id 1u9K48-002OUT-1p for pgsql-bugs@lists.postgresql.org; Mon, 28 Apr 2025 08:42:18 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id 439721380771; Mon, 28 Apr 2025 04:42:16 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Mon, 28 Apr 2025 04:42:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1745829736; x= 1745916136; bh=fnFreEiQtLPRKubZSqxEUq185ebHLPnxlAELqUQAsvw=; b=G sVJkusBKnr9paub7tCHxN2MMy2dd7td81Vn+UIjrPeIYqNkMdjo5SLLcbDBlIuw1 +kMbnk47EHuFsgst5v5camBH5xAMZ4liFxIJjpwCjVVU6hTPhxXMHJiw1IiEnpfj V2dGv34wWS/WVNUA3fZXe7DeEaLlRSwWSQiNkDd3UTHb4eAfhsJsxzF2ClnkuWwR jQbyaJZQ0H6rOTJNf4pmfX9M2ypf182j8PjMGMCEWXgHb9K92ESIjGiRdOvncA/Y 6qY3S+4YExtRFv74gLBQmpDp+5YAmAVI6D4qvVqpIFxbsaA/fJRbaLDcOT6X7ggu GZLlCceaEIKuWr4bu/2tA== 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=1745829736; x=1745916136; bh=f nFreEiQtLPRKubZSqxEUq185ebHLPnxlAELqUQAsvw=; b=uWqh2933NZx7AYke9 FjjS4GCw/z0QXEqoqK9QxMF0Ie4BAAQMBCqYx5+koYwpdMWENdIph59+hIMwuzC1 j4XKCAFxcD0pMUcukEwcRRcUCdsy4K7btKU2Hdewb+qizRXtxgSgcAoiccgvUujC U411g/+PVZB/pkEiKSxWRrI8202I9eIoc88X7enjUeXn47xko0QQBBs0H/UhKc+H D/3f+wiLuji6ON2z/ZZLFMDWa+ZwXQwQmhCjIasUmlfVt8V+Nf73/8rg4k0uKra4 kyx6zAXuekF9AT5YXG3Ld2/SEql9OitvdceGQIDi5tYTjrA7vpeaVyGHVSjRaQ3c uy7Ag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddviedthedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuh hrihhlvghmuhdruggvqeenucggtffrrghtthgvrhhnpeetuedvheffkeevgfeuheevteev kefggedttdeufeeuheduuddthfeffffhjeefffenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtth hopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehjrghpihhnlhhisehhohht mhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqsghughhssehlihhsthhsrdhpoh hsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehkvghithhhrdhprghskhgvthhtsehl ohhgrghnshifrdgtohhm X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Apr 2025 04:42:15 -0400 (EDT) Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id A5DA290; Mon, 28 Apr 2025 10:42:14 +0200 (CEST) Date: Mon, 28 Apr 2025 10:42:14 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Japin Li Cc: Keith Paskett , pgsql-bugs@lists.postgresql.org Subject: Re: pg_restore error with partitioned table having exclude constraint Message-ID: <202504280842.2jaxgkldoap2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 On 2025-Apr-24, Japin Li wrote: > On Thu, 17 Apr 2025 at 17:18, Álvaro Herrera wrote: > > On 2025-Apr-17, Japin Li wrote: > > > >> It seems PG 16 does not support exclusion constraints on > >> partitioned tables. > > > > Yeah, my recollection is that they were purposefully disallowed > > (mainly because I didn't want to research how to fully make them > > work when adding local partitioned indexes), and that we needed to > > do more work if we wanted to let them through. I suspect commit > > 8c852ba9a4 was mistaken to allow that case without looking for > > further implications. > > Sorry, I’m unclear on “more work.” Can you explain further? Well, there are no tests in the patch. 8c852ba9a434 added some, but it's now clear that something was overlooked. I think this patch should make more of an effort to cover all interesting cases in regression tests if there are holes in coverage; and also add something to verify that pg_dump and pg_upgrade work correctly for these constraints. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Si quieres ser creativo, aprende el arte de perder el tiempo"