diff options
author | Andres Freund <andres@anarazel.de> | 2018-10-14 15:18:16 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-10-15 15:17:04 -0700 |
commit | 9d906f1119de893a4ca533c5e7b97207a3aa963b (patch) | |
tree | 69424b7c149bf0ee3aeb2531da07d413dd0f4845 /src/include/access/htup_details.h | |
parent | e73ca79fc78db4eb13b7f513f16b7164c7b05ba7 (diff) |
Move generic slot support functions from heaptuple.c into execTuples.c.
heaptuple.c was never a particular good fit for slot_getattr(),
slot_getsomeattrs() and slot_getmissingattrs(), but in upcoming
changes slots will be made more abstract (allowing slots that contain
different types of tuples), making it clearly the wrong place.
Note that slot_deform_tuple() remains in it's current place, as it
clearly deals with a HeapTuple. getmissingattrs() also remains, but
it's less clear that that's correct - but execTuples.c wouldn't be the
right place.
Author: Ashutosh Bapat.
Discussion: https://postgr.es/m/20180220224318.gw4oe5jadhpmcdnm@alap3.anarazel.de
Diffstat (limited to 'src/include/access/htup_details.h')
-rw-r--r-- | src/include/access/htup_details.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/access/htup_details.h b/src/include/access/htup_details.h index 1867a70f6f3..97d240fdbb0 100644 --- a/src/include/access/htup_details.h +++ b/src/include/access/htup_details.h @@ -835,5 +835,7 @@ extern MinimalTuple minimal_tuple_from_heap_tuple(HeapTuple htup); extern size_t varsize_any(void *p); extern HeapTuple heap_expand_tuple(HeapTuple sourceTuple, TupleDesc tupleDesc); extern MinimalTuple minimal_expand_tuple(HeapTuple sourceTuple, TupleDesc tupleDesc); +struct TupleTableSlot; +extern void slot_deform_tuple(struct TupleTableSlot *slot, int natts); #endif /* HTUP_DETAILS_H */ |