aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2025-04-01 13:24:27 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2025-04-01 13:24:27 +0300
commit2904324a88f672b2ecc22735279c16d6e1ee178c (patch)
treec7cb55422baa961d887157f77bd96beccf63c27d /src/backend/utils/adt/array_userfuncs.c
parentaf0c248557aecb335462d980cb7319bdf85a5c66 (diff)
downloadpostgresql-2904324a88f672b2ecc22735279c16d6e1ee178c.tar.gz
postgresql-2904324a88f672b2ecc22735279c16d6e1ee178c.zip
heapam: Only set tuple's block once per page in pagemode
Due to splitting the block id into two 16 bit integers, BlockIdSet() is more expensive than one might think. Doing it once per returned tuple shows up as a small but reliably reproducible cost. It's simple enough to set the block number just once per block in pagemode, so do so. Author: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/lxzj26ga6ippdeunz6kuncectr5gfuugmm2ry22qu6hcx6oid6@lzx3sjsqhmt6
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions