Deduplicate code between slot_getallattrs() and slot_getsomeattrs().
Andres Freund <andres@anarazel.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/heaptuple.c | modified | +0 −45 |
| src/include/executor/tuptable.h | modified | +12 −1 |
Discussion
- TupleTableSlot abstraction 50 messages · 2018-02-20 → 2019-02-27