pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use MinimalTuple for tuple queues.
Date: Fri, 17 Jul 2020 03:12:24 +0000
Message-ID: <E1jwGnQ-00007I-TQ@gemulon.postgresql.org> (raw)

Use MinimalTuple for tuple queues.

This representation saves 8 bytes per tuple compared to HeapTuple, and
avoids the need to allocate, copy and free on the receiving side.

Gather can emit the returned MinimalTuple directly, but GatherMerge now
needs to make an explicit copy because it buffers multiple tuples at a
time.  That should be no worse than before.

Reviewed-by: Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKG%2B8T_ggoUTAE-U%3DA%2BOcPc4%3DB0nPPHcSfffuQhvXXjML6w%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cdc7169509113018cc389da740e950c587b5751f

Modified Files
--------------
src/backend/executor/nodeGather.c       | 16 ++++++-------
src/backend/executor/nodeGatherMerge.c  | 40 ++++++++++++++++++---------------
src/backend/executor/tqueue.c           | 30 ++++++++++++-------------
src/backend/optimizer/plan/createplan.c |  8 ++++---
src/include/executor/tqueue.h           |  4 ++--
5 files changed, 51 insertions(+), 47 deletions(-)



Message-ID: <E1jwGnQ-00007I-TQ@gemulon.postgresql.org>
Permalink:  ../E1jwGnQ-00007I-TQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jwGnQ-00007I-TQ@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: tmunro@postgresql.org
  Subject: Re: pgsql: Use MinimalTuple for tuple queues.
  In-Reply-To: <E1jwGnQ-00007I-TQ@gemulon.postgresql.org>
  References: <E1jwGnQ-00007I-TQ@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