pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Include chunk overhead in hash table entry size estimate.
Date: Sat, 04 Apr 2020 03:11:44 +0000
Message-ID: <E1jKZDk-0007sB-3H@gemulon.postgresql.org> (raw)

Include chunk overhead in hash table entry size estimate.

Don't try to be precise about it, just use a constant 16 bytes of
chunk overhead. Being smarter would require knowing the memory context
where the chunk will be allocated, which is not known by all callers.

Discussion: https://postgr.es/m/20200325220936.il3ni2fj2j2b45y5@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0588ee63aa2d8c5765d086991555cd9acdd4d86f

Modified Files
--------------
src/backend/executor/nodeAgg.c | 36 ++++++++++++++++++++++++++++++------
src/include/executor/nodeAgg.h |  2 +-
2 files changed, 31 insertions(+), 7 deletions(-)



Message-ID: <E1jKZDk-0007sB-3H@gemulon.postgresql.org>
Permalink:  ../E1jKZDk-0007sB-3H@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jKZDk-0007sB-3H@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: jdavis@postgresql.org
  Subject: Re: pgsql: Include chunk overhead in hash table entry size estimate.
  In-Reply-To: <E1jKZDk-0007sB-3H@gemulon.postgresql.org>
  References: <E1jKZDk-0007sB-3H@gemulon.postgresql.org>

* 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