Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gure7-000087-Ip for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Feb 2019 04:32:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gure6-0002BF-9o for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Feb 2019 04:32:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gure6-0002B8-0X for pgsql-bugs@lists.postgresql.org; Sat, 16 Feb 2019 04:32:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gure3-0003rd-Ee for pgsql-bugs@lists.postgresql.org; Sat, 16 Feb 2019 04:32:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1G4W4na031506; Fri, 15 Feb 2019 23:32:04 -0500 From: Tom Lane To: Michael Paquier cc: Peter Eisentraut , dnsl48@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15631: Generated as identity field in a temporary table with on commit drop corrupts system catalogs In-reply-to: <20190216001308.GF2240@paquier.xyz> References: <15631-188663b383e1e697@postgresql.org> <24188.1549917188@sss.pgh.pa.us> <043b0c10-5a27-b9ff-7451-b8a2ca9327b1@2ndquadrant.com> <31358.1549981670@sss.pgh.pa.us> <20190213023817.GD5746@paquier.xyz> <20190213044104.GE5746@paquier.xyz> <0bc96c3e-8a3f-414f-8ba7-f7f95a787d48@2ndquadrant.com> <32505.1550241839@sss.pgh.pa.us> <99401209-fb88-036d-c93f-dbe5211a091a@2ndquadrant.com> <20190216001308.GF2240@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Sat, 16 Feb 2019 09:13:08 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31504.1550291524.1@sss.pgh.pa.us> Date: Fri, 15 Feb 2019 23:32:04 -0500 Message-ID: <31505.1550291524@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Fri, Feb 15, 2019 at 05:03:29PM +0100, Peter Eisentraut wrote: >> Yeah, I'm OK on that, but that's not really the problem here. This is >> not a case where a later step in a complex DDL command needs to see what >> an earlier step did. This is about that something later in the >> transaction needs to see what happened earlier in the transaction. This >> does not seem to be the job of each individual DDL command; they don't >> know what someone later might want to look at. Otherwise many DDL >> command implementations are lacking this CCI. I think the CCI should be >> more like at the end of ProcessUtility(). > Not all utility commands need a CCI, for example take VACUUM. BEGIN and COMMIT are more convincing counterexamples ... regards, tom lane