Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdjPC-0001ln-O0 for pgsql-hackers@arkaria.postgresql.org; Sat, 27 Aug 2016 19:36:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bdjPC-0006YZ-1G for pgsql-hackers@arkaria.postgresql.org; Sat, 27 Aug 2016 19:36:38 +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 1bdjP9-0006X4-JI for pgsql-hackers@postgreSQL.org; Sat, 27 Aug 2016 19:36:35 +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 1bdjP6-0005vt-Dj for pgsql-hackers@postgreSQL.org; Sat, 27 Aug 2016 19:36:34 +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 u7RJaSRg024860; Sat, 27 Aug 2016 15:36:28 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgreSQL.org Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls In-reply-to: <20160827190933.3hmzdrx4hpnvrhjo@alap3.anarazel.de> References: <21072.1472321324@sss.pgh.pa.us> <20160827190933.3hmzdrx4hpnvrhjo@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 27 Aug 2016 12:09:33 -0700" Date: Sat, 27 Aug 2016 15:36:28 -0400 Message-ID: <24859.1472326588@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 14:08:44 -0400, Tom Lane wrote: >> Barring objection, I propose to make these changes in HEAD and 9.6. > I think we might also / instead want to think about replacing a lot of > those AllocSetContextCreate with a wrapper function. Currently is really > rather annoying to experiment with switching the default allocator > out. And if we're touching all that code anyway ... I do not see why you'd think that "switching the default allocator out" requires anything except making AllocSetContextCreate do something else. 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. 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