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: Introduce LogicalTapeSetExtend().
Date: Mon, 09 Mar 2020 18:12:08 +0000
Message-ID: <E1jBMsq-0000ma-Kk@gemulon.postgresql.org> (raw)

Introduce LogicalTapeSetExtend().

Increases the number of tapes in a logical tape set. This will be
important for disk-based hash aggregation, because the maximum number
of tapes is not known ahead of time.

While discussing this change, it was observed to regress the
performance of Sort for at least one test case. The performance
regression was because some versions of GCC switch to an inlined
version of memcpy() in LogicalTapeWrite() after this change. No
performance regression for clang was observed.

Because the regression is due to an arbitrary decision by the
compiler, I decided it shouldn't hold up this change. If it needs to
be fixed, we can find a workaround.

Author: Adam Lee, Jeff Davis
Discussion: https://postgr.es/m/e54bfec11c59689890f277722aaaabd05f78e22c.camel%40j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/24d85952a57b16090ca8ad9cf800fbdd9ddd104f

Modified Files
--------------
src/backend/utils/sort/logtape.c | 73 +++++++++++++++++++++++++---------------
src/include/utils/logtape.h      |  1 +
2 files changed, 47 insertions(+), 27 deletions(-)



Message-ID: <E1jBMsq-0000ma-Kk@gemulon.postgresql.org>
Permalink:  ../E1jBMsq-0000ma-Kk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jBMsq-0000ma-Kk@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: Introduce LogicalTapeSetExtend().
  In-Reply-To: <E1jBMsq-0000ma-Kk@gemulon.postgresql.org>
  References: <E1jBMsq-0000ma-Kk@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