pgsql: Don't force materializing when copying a buffer tuple table slot

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't force materializing when copying a buffer tuple table slot
Date: 2019-02-28 22:56:40
Message-ID: E1gzUbY-0004Wx-I5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't force materializing when copying a buffer tuple table slot.

After 5408e233f0667478 it's not necessary to force materializing the
target slot when copying from one buffer slot to another. Previously
that was required because the HeapTupleData portion of the source slot
wasn't guaranteed to stay valid long enough, but now we can simply
copy that part into the destination slot's tupdata.

Author: Andres Freund

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8f0577386e68c3b1c83a07b95756e5ee3f4ae73f

Modified Files
--------------
src/backend/executor/execTuples.c | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2019-02-28 23:47:07 Re: pgsql: Use slots in trigger infrastructure, except for the actual invoc
Previous Message Alvaro Herrera 2019-02-28 22:25:23 pgsql: Improve docs for ALTER TABLE .. SET TABLESPACE