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 1gcv72-0001x4-Ef for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 16:35:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcv6z-00020s-RE for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 16:35:49 +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 1gcv6z-00020V-HJ for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 16:35:49 +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 1gcv6w-0007RE-4T for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 16:35:47 +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 wBSGZdEm030126; Fri, 28 Dec 2018 11:35:39 -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: <201812281623.qlyp5nygu3pt@alvherre.pgsql> References: <201812281623.qlyp5nygu3pt@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 28 Dec 2018 13:23:58 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30124.1546014939.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Dec 2018 11:35:39 -0500 Message-ID: <30125.1546014939@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2018-Dec-28, Alvaro Herrera wrote: >> On 2018-Dec-28, Michael Paquier wrote: >>> There are many exotic extensions which could be using sizeof(PGPROC) >>> as that's a popular structure, >> Can you show one instance of this? > I looked at = > https://github.com/postgrespro/pg_wait_sampling/blob/master/pg_wait_samp= ling.c > https://github.com/citusdata/citus/search?q=3Dpgproc&unscoped_q=3Dpgproc > 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 ProcArray 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. regards, tom lane