Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYBMM-0006EA-Ix for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2017 13:19:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dYBMM-0001OZ-5Y for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2017 13:19:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYBMJ-0001IN-Re for pgsql-hackers@postgresql.org; Thu, 20 Jul 2017 13:19:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYBMH-0003g3-D2 for pgsql-hackers@postgresql.org; Thu, 20 Jul 2017 13:19:14 +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 v6KDJARB006052; Thu, 20 Jul 2017 09:19:10 -0400 From: Tom Lane To: Greg Stark cc: Justin Pryzby , Simon Riggs , PostgreSQL-development Subject: Re: [GENERAL] huge RAM use in multi-command ALTER of table heirarchy In-reply-to: References: <20170706180420.GH30252@telsasoft.com> <31269.1500420390@sss.pgh.pa.us> Comments: In-reply-to Greg Stark message dated "Thu, 20 Jul 2017 13:39:11 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6050.1500556750.1@sss.pgh.pa.us> Date: Thu, 20 Jul 2017 09:19:10 -0400 Message-ID: <6051.1500556750@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Greg Stark writes: > On 19 July 2017 at 00:26, Tom Lane wrote: >> It's probably a bit late in the v10 cycle to be taking any risks in >> this area, but I'd vote for ripping out RememberToFreeTupleDescAtEOX >> as soon as the v11 cycle opens, unless someone can show an example >> of non-broken coding that requires it. (And if so, there ought to >> be a regression test incorporating that.) > Would it be useful to keep in one of the memory checking assertion builds? Why? Code that expects to continue accessing a relcache entry's tupdesc after closing the relcache entry is broken, independently of whether it's in a debug build or not. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers