pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls
Date: Sat, 27 Aug 2016 15:46:26 -0400
Message-ID: <25216.1472327186@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.de> 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



view thread (13+ messages)  latest in thread

Message-ID: <25216.1472327186@sss.pgh.pa.us>
Permalink:  ../25216.1472327186@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25216.1472327186@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
  Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls
  In-Reply-To: <25216.1472327186@sss.pgh.pa.us>
  References: <21072.1472321324@sss.pgh.pa.us> <20160827190933.3hmzdrx4hpnvrhjo@alap3.anarazel.de> <24859.1472326588@sss.pgh.pa.us> <20160827194010.yigyqst5c5s2mfig@alap3.anarazel.de> <25216.1472327186@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox