From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Deduplicate code between slot_getallattrs() and slot_getsomeattr |
Date: | 2018-08-23 23:59:35 |
Message-ID: | E1fszVn-0005CZ-O6@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Deduplicate code between slot_getallattrs() and slot_getsomeattrs().
Code in slot_getallattrs() is the same as if slot_getsomeattrs() is
called with number of attributes specified in the tuple
descriptor. Implement it that way instead of duplicating the code
between those two functions.
This is part of a patchseries abstracting TupleTableSlots so they can
store arbitrary forms of tuples, but is a nice enough cleanup on its
own.
Author: Ashutosh Bapat
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/20180220224318.gw4oe5jadhpmcdnm@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/88ebd62fcc2ea7c55c0858f6dd4800d51383529f
Modified Files
--------------
src/backend/access/common/heaptuple.c | 45 -----------------------------------
src/include/executor/tuptable.h | 13 +++++++++-
2 files changed, 12 insertions(+), 46 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2018-08-24 00:16:20 | pgsql: Add more tests for VACUUM skips with partitioned tables |
Previous Message | Andrew Gierth | 2018-08-23 20:48:54 | pgsql: Fix lexing of standard multi-character operators in edge cases. |