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 1kUxkN-0003bv-Jz for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Oct 2020 19:56:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kUxkL-00064s-Qv for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Oct 2020 19:56:37 +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 1kUxkL-00064l-KE for pgsql-hackers@lists.postgresql.org; Tue, 20 Oct 2020 19:56:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUxkJ-0004x0-CX for pgsql-hackers@postgresql.org; Tue, 20 Oct 2020 19:56:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 09KJuUVx674285; Tue, 20 Oct 2020 15:56:30 -0400 From: Tom Lane To: Alvaro Herrera cc: Justin Pryzby , pgsql-hackers@postgresql.org, Amit Langote Subject: Re: CREATE TABLE .. PARTITION OF fails to preserve tgenabled for inherited row triggers In-reply-to: <20201020190420.GA18579@alvherre.pgsql> References: <20201020190420.GA18579@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 20 Oct 2020 16:04:20 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <674283.1603223790.1@sss.pgh.pa.us> Date: Tue, 20 Oct 2020 15:56:30 -0400 Message-ID: <674284.1603223790@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > Hmm, next question: should we backpatch a fix for this? (This applies > all the way back to 11.) If we do, then we would change behavior of > partition creation. It's hard to see that the current behavior is > desirable ... and I think anybody who would have come across this, would > wish it behaved the other way. But still -- it would definitely be a > behavior change. The behavior change seems like it'd be an improvement in a vacuum, but I wonder how it would interact with catalog contents left behind by the old misbehavior. Also, would we expect pg_dump to try to do anything to clean up the mess? If so, allowing a back branch to have had more than one behavior would complicate that greatly. regards, tom lane