Re: Difference between HeapTupleData and TupleTableSlot structures

2022-10-23 Thread Aleksander Alekseev
Hi hackers, > TupleTableSlot is a more abstract concept, being a container > for a tuple that can be present in several different forms. > It can contain a concrete tuple (HeapTupleData), or a "virtual" > tuple that is just an array of Datum+isnull values. The executor > usually uses tuple slots

Re: Difference between HeapTupleData and TupleTableSlot structures

2022-10-07 Thread Tom Lane
Ajay P S writes: > I am pretty new to the Postgres code base. I would like to know the > difference between HeapTupleData and TupleTableSlot structures. HeapTupleData is just a pointer to a concrete tuple. It exists mainly because it's often convenient to pass around the tupl

Difference between HeapTupleData and TupleTableSlot structures

2022-10-07 Thread Ajay P S
Hi, I am pretty new to the Postgres code base. I would like to know the difference between HeapTupleData and TupleTableSlot structures. Basically I am trying to understand some of the table access methods like heap_insert, heap_getnext, heap_getnextslot etc where some accepts Heaptuple as input