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 1m4Vpe-0005sv-Hc for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jul 2021 21:57:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m4Vpd-0002Pc-AB for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jul 2021 21:57:17 +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 1m4Vpd-0002OR-2A for pgsql-hackers@lists.postgresql.org; Fri, 16 Jul 2021 21:57:17 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4VpZ-0004Qc-SR for pgsql-hackers@postgresql.org; Fri, 16 Jul 2021 21:57:16 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5F9005C01C7; Fri, 16 Jul 2021 17:57:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 16 Jul 2021 17:57:11 -0400 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:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=9JsMG40HeGI9gyJkaOSxef2e5/0Vw0Fdb8Mof1fbUDo=; b=LQteCNrZ 5YG3OG27IKKT5KfKoEIgwguvcEblit0QbyJtuAi5sJ2nvWj+VT1lEdyBmr76vI/K IWzw0DIqIiv/u2SN6DOJ6Un8vGUfpaK+C5JyPcLOPqPUaDb1CCk9ShqHXoCkn7/o dhT83ZMIoepsB9M8SRUu3HpUD8aITBKvR7lH3bz/4FmomVN9CHFRd1a6h56+OlPI 6lJ6Zr9pUuB6EkpQ1x3dP9u4p6PJ+xSfzusTOFSYwM0lthSqKjslVge0olkpta8d qzKSMCnF3SK7O9YiKD9vShfJntdqYb9TO6aLe81V4+5TbPk3cUvTwtihT5WsCxvA XPJ+73i7Y2y14Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdeggddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeevjedu feeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Jul 2021 17:57:10 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 098052A097C; Fri, 16 Jul 2021 17:57:07 -0400 (-04) Date: Fri, 16 Jul 2021 17:57:07 -0400 From: Alvaro Herrera To: Justin Pryzby Cc: Tom Lane , pgsql-hackers@postgresql.org, Amit Langote Subject: Re: CREATE TABLE .. PARTITION OF fails to preserve tgenabled for inherited row triggers Message-ID: <202107162157.53swi4o7wo2q@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202107142345.2mdefvxfzhjy@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I noticed that in pg_dump --clean, we were still emitting DROP lines for the triggers in the partitions, which raises errors; so I emptied that too. On 2021-Jul-14, Alvaro Herrera wrote: > Looking over the tests added by your (Justin's) patch, there was a > problem checking for non-existance of the CREATE TRIGGER line: it > doesn't work to use "like => {}" (empty), you need to use > "unlike => { everything }". So your test was not catching the fact that > we were, in fact, emitting the undesirable line. Actually, that is wrong; unlike is there just to be able to subtract dumps from the set that is going to be searched for the regexp, for when you want to use one of the hashes (%full_runs) but ignore a few of those. > I have fixed that here, and verified that the tests are doing what we > wanted them to do. ... and I added some more tests, for pg_upgrade. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "La espina, desde que nace, ya pincha" (Proverbio africano)