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 1gcw2D-0004xq-Sv for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 17:34:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcw2C-0004EA-Jf for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 17:34:56 +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 1gcw2C-0004E1-7M for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 17:34:56 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcw25-0007Tk-4Q for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 17:34:55 +0000 Received: by mail-qt1-x843.google.com with SMTP id i7so23985971qtj.10 for ; Fri, 28 Dec 2018 09:34:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=uZUMURWuPsSMUvEHp56n4rcI6eKn4nTwdwM2VZFcX44=; b=HuHcwfa+7BWjYe2vPyyyDXj2D38U+7IVECSzC3xtQ+djxv9ABPBdE8O61pd8nJpuUh zVJLbpftK4d9CJtKRr6Kbv7WnxHJd4mq7MYQMOGUEY3fCIhqUovhh1nTI3JfkW0E1l4X gNWTTepAYOTP9XjuVY3mEUQX4v9M1IHQtXETi/q3IJbsYR6xvL4f1VnDpnEJ+SivJjOo 6K69bloyZWDePLecXwNmvptfpy4WeufC3nPzIShvT7wgdkv8XyhXjKr5D7KQdfnWHeFL T1QWXeuCrTATKrPeUT2/v9CgbuJ61WcsJvl+9bTztRIM3GUKv8Is2U/VLm5rvb3V80UM boUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=uZUMURWuPsSMUvEHp56n4rcI6eKn4nTwdwM2VZFcX44=; b=uH6+xYYRkaaevo/skn6qBBCKw69kSzqB1FLbgCIjqhWCj5rCMahXIE+Phb/cyjg2y8 bh8DRzzdWne6nfAxX+Qx9xME5ZhSn1ZkGRWwQVCOrJXW+hIteJA7j8q/SjrDlJhDzE0J OfXFsZ4la8CCcPOkmNtFkcfYSv/Dnr9YxMA6rzoVLDm+sG7o6f4V8QCvmItorW+t+xt2 idkiMbEo/pQOWYPokUP0F4mhzfd5pmmGzZAlKp8Xl4mN7bg3F2aMOokZ7Go6xcV0x/O/ +ARyiKf+TGRNjI2yVMhIhON43kU3EILLv8uRGXoAqNc/m5LG9ruKPcwuykXinRQf/lSN 3+9w== X-Gm-Message-State: AJcUukfnv6qjwA0dfvAFUmpDoP98PI9xpY6g2vUzJujqmsDGUSxJhf53 VRDsco94uZ+A3Al/QKdmxaP+Lw== X-Google-Smtp-Source: ALg8bN5evEZGZ7zTwhIEhcsYf7oAM57xxbFDHWBG/8cNmUKMPH7/y7LjnZFGXlGvQxCFLMDDIyfS6A== X-Received: by 2002:a0c:b61b:: with SMTP id f27mr26884166qve.174.1546018487206; Fri, 28 Dec 2018 09:34:47 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id z8sm14325339qto.45.2018.12.28.09.34.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Dec 2018 09:34:46 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 9CB30A3F; Fri, 28 Dec 2018 14:34:44 -0300 (-03) Date: Fri, 28 Dec 2018 14:34:44 -0300 From: Alvaro Herrera To: Tom Lane Cc: Michael Paquier , "Tsunakawa, Takayuki" , Robert Haas , PostgreSQL Hackers Subject: Re: removal of dangling temp tables Message-ID: <201812281734.zwh3cexl4p2i@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30574.1546015645@sss.pgh.pa.us> User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Dec-28, Tom Lane wrote: > I wrote: > > Alvaro Herrera writes: > >> I looked at > >> https://github.com/postgrespro/pg_wait_sampling/blob/master/pg_wait_sampling.c > >> https://github.com/citusdata/citus/search?q=pgproc&unscoped_q=pgproc > >> 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. > > In fact, there's a counterexample right here in pg_wait_sampling: > > https://github.com/postgrespro/pg_wait_sampling/blob/master/pg_wait_sampling.c#L343 Ughh. I stand corrected. This seems a terrible interface, from an ABI compatibility point of view, and exposing proclist_node_get() as an inline function, doubly so. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services