aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogfuncs.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2019-12-18 11:08:59 -0500
committerRobert Haas <rhaas@postgresql.org>2019-12-18 11:08:59 -0500
commite9fd0415e6e27c8ce5f40152aa98347ca6fe4385 (patch)
tree4e492b0b7b63b9f971cabf03a32878b388101bf2 /src/backend/access/transam/xlogfuncs.c
parentbf7427bdd389aa6c266768f2a07214a2a02b85c9 (diff)
downloadpostgresql-e9fd0415e6e27c8ce5f40152aa98347ca6fe4385.tar.gz
postgresql-e9fd0415e6e27c8ce5f40152aa98347ca6fe4385.zip
Move heap-specific detoasting logic into a separate function.
The new function, heap_fetch_toast_slice, is shared between toast_fetch_datum_slice and toast_fetch_datum, and does all the work of scanning the TOAST table, fetching chunks, and storing them into the space allocated for the result varlena. As an incidental side effect, this allows toast_fetch_datum_slice to perform the scan with only a single scankey if all chunks are being fetched, which might have some tiny performance benefit. Discussion: http://postgr.es/m/CA+TgmobBzxwFojJ0zV0Own3dr09y43hp+OzU2VW+nos4PMXWEg@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlogfuncs.c')
0 files changed, 0 insertions, 0 deletions