aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2019-04-30 15:55:07 -0700
committerAndres Freund <andres@anarazel.de>2019-04-30 16:20:07 -0700
commit3a48005b0049d69b4376e6ae386479ae3d255a11 (patch)
treedea0bb5397e39d70ac25e05a53bc3d8e4d333638 /doc/src
parente03ff739695cb731956763355e8e0f38c6905008 (diff)
downloadpostgresql-3a48005b0049d69b4376e6ae386479ae3d255a11.tar.gz
postgresql-3a48005b0049d69b4376e6ae386479ae3d255a11.zip
Improve code inferring length of bitmap for JITed tuple deforming.
While discussing comment improvements (see next commit) by Justin Pryzby, Tom complained about a few details of the logic to infer the length of the NULL bitmap when building the JITed tuple deforming function. That bitmap allows to avoid checking the tuple header's natts, a check which often causes a pipeline stall Improvements: a) As long as missing columns aren't taken into account, we can continue to infer the length of the NULL bitmap from NOT NULL columns following it. Previously we stopped at the first missing column. It's unlikely to matter much in practice, but the alternative would have been to document why we stop. b) For robustness reasons it seems better to also check against attisdropped - RemoveAttributeById() sets attnotnull to false, but an additional check is trivial. c) Improve related comments Discussion: https://postgr.es/m/20637.1555957068@sss.pgh.pa.us Backpatch: -
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions