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 1gyrfT-00022U-Jj for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Feb 2019 05:22:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyrfS-0006rO-7C for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Feb 2019 05:22:06 +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 1gyrfQ-0006rH-9s for pgsql-hackers@lists.postgresql.org; Wed, 27 Feb 2019 05:22:06 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyrfM-0001Ar-Vn for pgsql-hackers@postgresql.org; Wed, 27 Feb 2019 05:22:03 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 44A8B21DB2; Wed, 27 Feb 2019 00:22:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 27 Feb 2019 00:22:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=ywlWkmee8rq/8hfxk16QUmNQC3/ oMAyuYMDay7tkPOg=; b=sX86MPi27Wg+VneMh3cxW71MOsC+PJg4eZ8qGGX5LSK GW8Oi1xAo4q7zCrcLShAQDorr2Oj/wCnK5n1jCx4rLUxuiqKyIvNR7LbjqIFdyb2 HfjxgT9hcCzTB9J0O/zsZKU/QhU45tfiHCIIr3xHlcxXslJCwIasFjHqgtTj3GES w0VLNDU0NbioTr15N4pvVKFUuPaVfbgzunQqEQLMkZdoHzWmibaBaaojN1dysSN4 ZfX+32e4WXwcz5B6fdILyizUlB8rSH1gPTZnucKbgEqSh11NGuZ+i8kqoKU110n9 +vrbAY6aZ/nZuGZlO4fBvpTUwdVJlTHX1vGEw9dhuNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ywlWkm ee8rq/8hfxk16QUmNQC3/oMAyuYMDay7tkPOg=; b=DX7FLuK8PhEAPJLwwZzhga V3Q18K0xQBuBKNjZFRn8CwfJAVujpRAYiozeJLRrVxGaQQIYAlcd+ZEFYbR2nrBu stB0DShYUPkuOWoE8K3Y3wLfZ0iamvMcrfCGMj1Z9J5U9OM1xwQacbI19SN9ERZp M8wgaam8uo5gkYeR/WFrxhbnuHD+tiuOC6c463CidAxVDjI26awxgyNFWPzZaNYn 56uSoY41kJt3Pat6dItpZlePRwkYKbGN+ECh7XCYthZs3GfhGVHPCdEttkYnkHqj Fo8XNUCdr/NV83NT/oof6F0g5mhPG9U/c2XUluC7GcBY4/rd4jn7PiF67qKeXdmQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrvddtgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvgeelrddvheefnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1f9fd.ap.nuro.jp [118.241.249.253]) by mail.messagingengine.com (Postfix) with ESMTPA id A8520E4240; Wed, 27 Feb 2019 00:21:56 -0500 (EST) Date: Wed, 27 Feb 2019 14:21:52 +0900 From: Michael Paquier To: Jeff Janes Cc: Andres Freund , pgsql-hackers , Robert Haas , Haribabu Kommi , Amit Khandekar , Alvaro Herrera , Amit Kapila Subject: Re: TupleTableSlot abstraction Message-ID: <20190227052152.GA3540@paquier.xyz> References: <20180220224318.gw4oe5jadhpmcdnm@alap3.anarazel.de> <20181113233021.nckxp4kalaqzx7ag@alap3.anarazel.de> <20181117004642.hushozrhxs7v72qo@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Feb 16, 2019 at 05:07:44PM -0500, Jeff Janes wrote: > By blind analogy to the changes made to matview.c, I think that createas.c > is missing a heap_freetuple, as attached. I think that you are right. CTAS and materialized views share a lot when it comes to relation creation and initial table loading. I have reproduced the leak and could notice that your fix is correct. So committed. -- Michael --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlx2HnAACgkQnvQgOdby QH0KpBAApVqKCb1TogeaxChKyqCwXobWRI/w8RMPbcwojuF7u0/PurX21u7Urh3n OdkFxD7dYetSVPku8ZvbHhOZtERnoVxnUydxBxxb9imE2gSqpjpRzZEppxsOsq++ twExxUHJ4/5c9gADF4Hkamu/CRUpEWCTYA3NNU1rEx7VuYlqHLw/oCwN4WKv2EAD Fvr4Pk84aMXnmXI3ZAUPgUFvAO1/qcwuZVdtKZM37lfH4ffIEIP/WD/zOgO4/cmy 2Sj/fkfZh7DiT0cWVSCPqnBGQwkc0+SM4CVSRJkWWax3o3cLIsQp9jUpDoEVgHrI +oUxNfwFTkGPWCs8QwfKJzUsutluPuphLBhADzFjGPLEugZh2JBmY/qTR5xcWRs4 rO06Lgnkz47uKogoyj6U8h+sjB3m9Aq6XyZccw4Txrmz8tDHafCElaVvaz2NmRBW 5bmHeMkLINx3KQ2j9amnK14JmBOdNMM/WrDDwhjBfuQueTBcbFRziXyqGYs4uzvg /eDLes7TrgoxaNete4PujeoWtTuMehJV+fuglJeK8vTO/273GZR9pxMnxANvll+t JqdKJKZ/dxAsox5nMHsURb6PzT11NZx+DUCjuq92DsJL79I//iN9WvGwABkMESGF vU5vi/T+9Wzb6i8v/6XcCT1skOmJmYbofUy9sbgp7u5S8mISvWI= =TU0K -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--