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 1gcvIO-0002TA-5J for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 16:47:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcvIM-0005SH-Ek for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 16:47:34 +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 1gcvIM-0005SA-7V for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 16:47:34 +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 1gcvIJ-0006VR-KJ for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 16:47:33 +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 wBSGlPe5030575; Fri, 28 Dec 2018 11:47:26 -0500 From: Tom Lane To: Alvaro Herrera cc: Michael Paquier , "Tsunakawa, Takayuki" , Robert Haas , PostgreSQL Hackers Subject: Re: removal of dangling temp tables In-reply-to: <30125.1546014939@sss.pgh.pa.us> References: <201812281623.qlyp5nygu3pt@alvherre.pgsql> <30125.1546014939@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 28 Dec 2018 11:35:39 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30573.1546015645.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Dec 2018 11:47:25 -0500 Message-ID: <30574.1546015645@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Alvaro Herrera writes: >> I looked at = >> https://github.com/postgrespro/pg_wait_sampling/blob/master/pg_wait_sam= pling.c >> https://github.com/citusdata/citus/search?q=3Dpgproc&unscoped_q=3Dpgpro= c >> and skimmed a few others can't find any instance where the full struct >> is used, as opposed to just a pointer to it. > No, the point Michael is making is that the array stride in the ProcArra= y > is part of our ABI. For example, accessing a PGPROC from its pgprocno > using the GetPGProcByNumber macro will be broken if we change the > struct size. I do not think you can assume that no extension does that. In fact, there's a counterexample right here in pg_wait_sampling: https://github.com/postgrespro/pg_wait_sampling/blob/master/pg_wait_sampli= ng.c#L343 regards, tom lane