From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Peter Geoghegan <pg@heroku.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Fix accounting of memory needed for merge heap.
Date: Thu, 8 Dec 2016 23:07:13 +0200
Message-ID: <ac52c586-711a-b171-d107-447dec6cace8@iki.fi> (raw)
In-Reply-To: <CAM3SWZQio_tvp4Ah+WjwCXvGt5HpmbyM0KB5b1w9mTULemHU-w@mail.gmail.com>
References: <E1cEtwb-0007xm-Nd@gemulon.postgresql.org>
<CAM3SWZQio_tvp4Ah+WjwCXvGt5HpmbyM0KB5b1w9mTULemHU-w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 12/08/2016 10:49 PM, Peter Geoghegan wrote:
> On Thu, Dec 8, 2016 at 12:20 AM, Heikki Linnakangas
> <heikki.linnakangas@iki.fi> wrote:
>> While we're at it, add a safeguard for the case that we are already over
>> the limit when allocating the read buffers. That shouldn't happen, but
>> better safe than sorry.
>
> I think you should 's/Min/Max/' where the new limit is applied. Also
> suggest that the subsequent USEMEM() call have
> "state->read_buffer_size * numInputTapes" as its argument, rather than
> state->availMem, just to be neat.
D'oh, you're right, of course. Fixed, thanks for the vigilance!
- Heikki
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: hlinnaka@iki.fi, pg@heroku.com
Subject: Re: pgsql: Fix accounting of memory needed for merge heap.
In-Reply-To: <ac52c586-711a-b171-d107-447dec6cace8@iki.fi>
References: <E1cEtwb-0007xm-Nd@gemulon.postgresql.org> <CAM3SWZQio_tvp4Ah+WjwCXvGt5HpmbyM0KB5b1w9mTULemHU-w@mail.gmail.com> <ac52c586-711a-b171-d107-447dec6cace8@iki.fi>
* 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