pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls
Date: Sun, 28 Aug 2016 10:41:59 -0400
Message-ID: <14922.1472395319@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobNcELVd3QmLD3tx=w7+CokRQiC4_U0txjz=WHpfdkU=w@mail.gmail.com>
References: <21072.1472321324@sss.pgh.pa.us>
	<CA+TgmobNcELVd3QmLD3tx=w7+CokRQiC4_U0txjz=WHpfdkU=w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> Also, I think we ought to replace this code in aset.c:

>     initBlockSize = MAXALIGN(initBlockSize);
>     if (initBlockSize < 1024)
>         initBlockSize = 1024;
>     maxBlockSize = MAXALIGN(maxBlockSize);

> With this:

>     Assert(initBlockSize >= 1024 && initBlockSize == MAXALIGN(initBlockSize));
>     Assert(maxBlockSize == MAXALIGN(maxBlockSize));

Good idea --- if we'd had it that way, these errors would never have
gotten committed in the first place.  I'm for doing that only in HEAD
though.

			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: <14922.1472395319@sss.pgh.pa.us>
Permalink:  ../14922.1472395319@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14922.1472395319@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, robertmhaas@gmail.com
  Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls
  In-Reply-To: <14922.1472395319@sss.pgh.pa.us>
  References: <21072.1472321324@sss.pgh.pa.us> <CA+TgmobNcELVd3QmLD3tx=w7+CokRQiC4_U0txjz=WHpfdkU=w@mail.gmail.com> <14922.1472395319@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