pgsql: Allow to use HeapTupleData embedded in[Buffer]HeapTupleTableSlo

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Allow to use HeapTupleData embedded in[Buffer]HeapTupleTableSlo
Дата
Msg-id E1gyr28-0004d5-5X@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Allow to use HeapTupleData embedded in [Buffer]HeapTupleTableSlot.

That avoids having to care about the lifetime of the
HeapTupleHeaderData passed to ExecStore[Buffer]HeapTuple(). That
doesn't make a huge difference for a plain HeapTupleTableSlot, but for
BufferHeapTupleTableSlot it can be a significant advantage, avoiding
the need to materialize slots where it's inconvenient to provide a
HeapTupleData with appropriate lifetime to point to the on-disk tuple.

It's quite possible that we'll want to add support functions for
constructing HeapTuples using that embedded HeapTupleData, but for now
callers do so themselves.

Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5408e233f0667478e7f2a3e4b914e14217e20729

Modified Files
--------------
src/include/executor/tuptable.h | 2 ++
1 file changed, 2 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Add ExecStorePinnedBufferHeapTuple.
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix memory leak when inserting tuple at relation creation forCT