Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5408e23

Browse files
committed
Allow to use HeapTupleData embedded in [Buffer]HeapTupleTableSlot.
That avoids having to care about the lifetime of theHeapTupleHeaderData passed to ExecStore[Buffer]HeapTuple(). Thatdoesn't make a huge difference for a plain HeapTupleTableSlot, but forBufferHeapTupleTableSlot it can be a significant advantage, avoidingthe need to materialize slots where it's inconvenient to provide aHeapTupleData with appropriate lifetime to point to the on-disk tuple.It's quite possible that we'll want to add support functions forconstructing HeapTuples using that embedded HeapTupleData, but for nowcallers do so themselves.Author: Andres FreundDiscussion:https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
1 parent8aa02b5 commit5408e23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/include/executor/tuptable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include"access/htup.h"
1818
#include"access/tupdesc.h"
19+
#include"access/htup_details.h"
1920
#include"storage/buf.h"
2021

2122
/*----------
@@ -246,6 +247,7 @@ typedef struct HeapTupleTableSlot
246247
HeapTupletuple;/* physical tuple */
247248
#defineFIELDNO_HEAPTUPLETABLESLOT_OFF 2
248249
uint32off;/* saved state for slot_deform_heap_tuple */
250+
HeapTupleDatatupdata;/* optional workspace for storing tuple */
249251
}HeapTupleTableSlot;
250252

251253
/* heap tuple residing in a buffer */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp