aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2020-03-17 18:39:26 -0700
committerPeter Geoghegan <pg@bowt.ie>2020-03-17 18:39:26 -0700
commitb897b3aae6b525922fe3d074d4bdf5f2674954dd (patch)
tree072e3e07882d59eabfdab2c4d445bc5f990f758e /src/backend/utils/adt/json.c
parent9b8aa0929390aab1f2f0859016e6110d283732dd (diff)
downloadpostgresql-b897b3aae6b525922fe3d074d4bdf5f2674954dd.tar.gz
postgresql-b897b3aae6b525922fe3d074d4bdf5f2674954dd.zip
nbtree: Remove useless local variables.
Copying block and offset numbers to local variables in _bt_insertonpg() made the code less readable. Remove the variables. There is already code that conditionally calls BufferGetBlockNumber() in the same block, so consistently do it that way instead. Calling BufferGetBlockNumber() is very cheap, but we might as well avoid it when it isn't truly necessary. It isn't truly necessary for _bt_insertonpg() to call BufferGetBlockNumber() in almost all cases. Spotted while working on a patch that refactors the fastpath rightmost leaf page cache optimization, which was added by commit 2b272734.
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions