pgsql: Use MinimalTuple for tuple queues.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use MinimalTuple for tuple queues.
Date: 2020-07-17 03:12:24
Message-ID: E1jwGnQ-00007I-TQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2020-07-17 03:40:37 pgsql: Fix signal handler setup for SIGHUP in the apply launcher proces
Previous Message Thomas Munro 2020-07-17 02:38:51 pgsql: Add huge_page_size setting for use on Linux.