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 1gcuvj-0001Hm-FA for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 16:24: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 1gcuvh-0008Qv-Mq for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 16:24:09 +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 1gcuvh-0008Qo-C9 for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 16:24:09 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcuvZ-0007C4-So for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 16:24:08 +0000 Received: by mail-qk1-x741.google.com with SMTP id y78so12776077qka.12 for ; Fri, 28 Dec 2018 08:24:01 -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=BgdvASaAim+5BhOQklE6pf2x+Gqh/PBoCG4eS6xrq0k=; b=2AJIpLquGcMhtXP3B1ilXY0eH3QCUDFnKfptlp02JHldxk0WrB7+EMrlzOkOGgzxf5 ++CZxcvuBDbugBf7mzFhegqIrQMy0oDXsiVB1kKncH0Z9eErdJX4wDyYOGdPIBJ4ct86 23s5ZOIgXHVY7TUv0ZtT6gm8BBp7DIExckI7+0C2C+Qj+zT3qK3bl0Wp/SPvM5fHQHPC lOtDmAOAmLKf1KG0KDWGf45ew128CF1icdVCv+MUudplKVdalf1v+9RBqXDVLS3DQjft AnZZFLXfqRr544uI+r6g+VoPvRXltXVMTFOuqi++/hTdK2Uur7iZCLgSjyODrwfkroKs SP2A== 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=BgdvASaAim+5BhOQklE6pf2x+Gqh/PBoCG4eS6xrq0k=; b=OWhfeSstIf4w0/lhtzq3wVCI9tSMKNHxd00XzIJB8MnCD9DYu66CFbRspEOAjrG3cX 0NBz6dhcdb32Pgp0CSJZSGc+35Mxwc0y4Y6tEc6V7m3Xce/f7OoupEh5NQpqrzZy/Jgc UJ41lRQ2uWBjzORUsnwF7H60EDmEnjNLWr75o9mXDyGJg64yxiRihj6ZnEdmRKfpU40H /93KBcgYlD8I0T6OijtNt2ypa0Yk7cpPxuNaJafi2/8gCmJeWCj/8W8hxeBKnHkA9NfM S9BYYt6vK2hR8Gk5VIarLwnWGEfu+1doMMMXNnZWDJRfvd4vrNd7YXlTXdBwEyELrd0j vfiw== X-Gm-Message-State: AJcUukdUeWxutNf4fZ8gFa8FHIWkEfVxS9bJxfB9KYybrWqAmdTPOZu0 DVghZ3s0SDrBE0JrV4abalxSyg== X-Google-Smtp-Source: ALg8bN4v0WhJ4dmkF4+1wRvMOdojR16U0dOJGGXM9HzraVRTSSsxoTueEYsK2uMCskkK9re4aspS8A== X-Received: by 2002:a37:5e85:: with SMTP id s127mr24975714qkb.234.1546014240977; Fri, 28 Dec 2018 08:24:00 -0800 (PST) Received: from alvin.alvh.no-ip.org ([201.186.19.206]) by smtp.gmail.com with ESMTPSA id t33sm15883182qtj.76.2018.12.28.08.24.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Dec 2018 08:24:00 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 348D9A2F; Fri, 28 Dec 2018 13:23:58 -0300 (-03) Date: Fri, 28 Dec 2018 13:23:58 -0300 From: Alvaro Herrera To: Michael Paquier Cc: "Tsunakawa, Takayuki" , Tom Lane , Robert Haas , PostgreSQL Hackers Subject: Re: removal of dangling temp tables Message-ID: <201812281623.qlyp5nygu3pt@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201812281325.g6m75ehwqq4p@alvherre.pgsql> User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Dec-28, Alvaro Herrera wrote: > On 2018-Dec-28, Michael Paquier wrote: > > > On Fri, Dec 28, 2018 at 12:05:34AM -0300, Alvaro Herrera wrote: > > > The server code allocates arrays, but that's fine because that code is > > > recompiled. Extensions only pass pointers around -- they don't create > > > any additional arrays. > > > > 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_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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services