Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdjaA-0002Qk-C9 for pgsql-hackers@arkaria.postgresql.org; Sat, 27 Aug 2016 19:47:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bdja9-0003RL-PF for pgsql-hackers@arkaria.postgresql.org; Sat, 27 Aug 2016 19:47:57 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bdjYl-0001SY-BE for pgsql-hackers@postgreSQL.org; Sat, 27 Aug 2016 19:46:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bdjYj-000683-AI for pgsql-hackers@postgreSQL.org; Sat, 27 Aug 2016 19:46:30 +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 u7RJkQ0f025217; Sat, 27 Aug 2016 15:46:26 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgreSQL.org Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls In-reply-to: <20160827194010.yigyqst5c5s2mfig@alap3.anarazel.de> References: <21072.1472321324@sss.pgh.pa.us> <20160827190933.3hmzdrx4hpnvrhjo@alap3.anarazel.de> <24859.1472326588@sss.pgh.pa.us> <20160827194010.yigyqst5c5s2mfig@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 27 Aug 2016 12:40:10 -0700" Date: Sat, 27 Aug 2016 15:46:26 -0400 Message-ID: <25216.1472327186@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) 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 Andres Freund writes: > On 2016-08-27 15:36:28 -0400, Tom Lane wrote: >> What is actually of interest, IMO, is making *some* contexts have a >> different allocator, and that is going to require case-by-case decisions >> anyway. A blanket switch seems completely useless to me. > Don't think aset.c is actually that good, so I'm not convinced of > that. And even if it's just to verify that a special case allocator > actually works with more coverage... I'm not exactly following. If you have a new allocator that dominates aset.c on all cases, why would we not simply replace aset.c with it? Mass substitution implemented at the caller end seems like the hard way. (Or in other words, the fact that "DefaultContextCreate" is spelled "AllocSetContextCreate" is a bit of a historical artifact, but I do not see why changing the spelling is a useful exercise.) 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