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 1hK2Tx-0003d0-AV for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Apr 2019 15:09:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hK2Tv-0006VJ-0o for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Apr 2019 15:09:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hK2Tu-0006Rp-NN for pgsql-bugs@lists.postgresql.org; Fri, 26 Apr 2019 15:09:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hK2Ts-0002RK-N9 for pgsql-bugs@lists.postgresql.org; Fri, 26 Apr 2019 15:09:42 +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 x3QF9a35008522; Fri, 26 Apr 2019 11:09:36 -0400 From: Tom Lane To: Peter Eisentraut cc: Michael Paquier , 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: <1a7ee3de-f450-606f-5c89-39e45c8052f8@2ndquadrant.com> References: <043b0c10-5a27-b9ff-7451-b8a2ca9327b1@2ndquadrant.com> <31358.1549981670@sss.pgh.pa.us> <20190213023817.GD5746@paquier.xyz> <20190213044104.GE5746@paquier.xyz> <12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com> <20190309013557.GF9266@paquier.xyz> <20190312034630.GH13812@paquier.xyz> <20190326024527.GS2558@paquier.xyz> <20190425005924.GF8552@paquier.xyz> <1a7ee3de-f450-606f-5c89-39e45c8052f8@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Fri, 26 Apr 2019 15:07:54 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8520.1556291376.1@sss.pgh.pa.us> Date: Fri, 26 Apr 2019 11:09:36 -0400 Message-ID: <8521.1556291376@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2019-04-25 02:59, Michael Paquier wrote: >> Is there something else you are considering for this patch? This >> previous suggestion looks fine to live with, at least for me. Tom, >> perhaps you have some extra input on the matter and would prefer a >> more restrictive location for the CCI? > I didn't find that solution very principled either. I now think the > best fix is to have a CCI at the end of standard_ProcessUtility(). It's > very possible that other commands could also create catalog entries that > some on-commit action would like to see. It wouldn't be sensible to > chase down each command separately. Seems reasonable to me. Do we have a concrete patch with that? The minor-release deadline is getting closer ... regards, tom lane