From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert ExecComputeStoredGenerated to use tuple slots
Date: Wed, 22 May 2019 16:42:11 +0000
Message-ID: <E1hTUJf-00024b-3u@gemulon.postgresql.org> (raw)
Convert ExecComputeStoredGenerated to use tuple slots
This code was still using the old style of forming a heap tuple rather
than using tuple slots. This would be less efficient if a non-heap
access method was used. And using tuple slots is actually quite a bit
faster when using heap as well.
Also add some test cases for generated columns with null values and
with varlena values. This lack of coverage was discovered while
working on this patch.
Discussion: https://www.postgresql.org/message-id/flat/20190331025744.ugbsyks7czfcoksd%40alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/66a4bad83aaa6613a45a00a488c04427f9969fb4
Modified Files
--------------
src/backend/executor/nodeModifyTable.c | 33 +++++++++++++++++----------------
src/test/regress/expected/generated.out | 31 +++++++++++++++++++++++++++----
src/test/regress/sql/generated.sql | 10 ++++++++--
3 files changed, 52 insertions(+), 22 deletions(-)
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: peter@eisentraut.org
Subject: Re: pgsql: Convert ExecComputeStoredGenerated to use tuple slots
In-Reply-To: <E1hTUJf-00024b-3u@gemulon.postgresql.org>
References: <E1hTUJf-00024b-3u@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