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 1u9mLS-006DiK-OX for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Apr 2025 14:54:03 +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 1u9mLQ-007t2J-HC for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Apr 2025 14:54:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u9mLP-007t20-GB for pgsql-bugs@lists.postgresql.org; Tue, 29 Apr 2025 14:54:01 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u9mLN-000CTb-2C for pgsql-bugs@lists.postgresql.org; Tue, 29 Apr 2025 14:54:00 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 0E57911401DA; Tue, 29 Apr 2025 10:53:55 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 29 Apr 2025 10:53:55 -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=1745938435; x= 1746024835; bh=56kiKiq1pmRKAaTRSRYoJ5zMBrQ9Cj9yBGXyKrLlEg8=; b=R m/aHCu2hiLXoaWRLnI27RYMxIX5FiPD0KN9DY6ohuSGhLzkFZibVXI9ox0eoyLEJ 1osfqVxeGAezKqu4VvaIN6GQVdwen7j2XKRxclPjOf6Wsni765PsIqR2ZVs51z2D zdqJHmcAeAICW8G422mH2Uldwt5v9ZuqCDYU889yiE9OvBkJdYsWv+iMskgKnVgv JAGw2qT/rLdI9iTyBWAmbEV2V6hMcNYmc7m2MEGb6oacw8k0q5jTU8cDMVnE7nU5 ot6zAFdMYUFhcvT4HDxwGN+Y+ESRnxU6AEJm8Brqc3WUdXb5PTMqavL8uqFc+6f+ Fm0XMnqZLr6UEV2JLKDCg== 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=1745938435; x=1746024835; bh=5 6kiKiq1pmRKAaTRSRYoJ5zMBrQ9Cj9yBGXyKrLlEg8=; b=b8Ohyl8/35ZVgz3Vo Q7slzdDw8sIjKQIkoItIXKtP/Zqe3G2HJY3UJ7kYwi7d4KhDvoGxaJYpMiZrNtUm nqpTT0Yf8RS5R7+Xqn7bUwBQLNzdAI5hj/gr90NLsdJk7pUazHUrCtfzz7YXuSZU VEfNPeiOgeikQwSJQbccW3K5UQ+QdGn/aBCJ/zhiMk3SiQQY6sD9U9z/WHaxfBTq taO2beg5lia+nsPrS3csan6KvuDyPZY1kHVc2fXuOEVZC1hb+u6Wsr3FQEcciM7c +7oK7uXxOaau5JRYExg+OqSs6BNWQe8mfzneTkK8VeW5tcsZXKQKQ9OGBEwKXz53 i4iIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieegudduucetufdoteggodetrf 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; Tue, 29 Apr 2025 10:53:54 -0400 (EDT) Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 37BBE90; Tue, 29 Apr 2025 16:53:52 +0200 (CEST) Date: Tue, 29 Apr 2025 16:53:52 +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: <202504291453.r37jvblkfqcu@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-29, Japin Li wrote: > My understanding, based on the src/bin/pg_dump tests, is that they don't > involve a genuine restore of the dumped data to a database. Instead, it > dumps to a file using pg_restore. Is that correct? Yes. > I doubt whether I can add a test to pg_dump that would cover this issue. The pg_upgrade now includes a roundtrip dump/restore which you can take advantage of. You just need to ensure some of the src/test/regress/sql files leave an object in the state you need, and the pg_upgrade test will run those tests and try to dump and restore the resulting database. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Debido a que la velocidad de la luz es mucho mayor que la del sonido, algunas personas nos parecen brillantes un minuto antes de escuchar las pelotudeces que dicen." (Roberto Fontanarrosa)