aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-11-03 17:21:59 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-11-03 17:21:59 -0400
commita9169f0200fc57e01cbd216bbd41c9ea3a79a7b0 (patch)
tree58e6a30aa84fae179f5469f1c0a4b1f9d5aa31f9 /src/backend/access/gist
parent4c11d2c559e76892156fd08d6a3cf5e1848a017f (diff)
downloadpostgresql-a9169f0200fc57e01cbd216bbd41c9ea3a79a7b0.tar.gz
postgresql-a9169f0200fc57e01cbd216bbd41c9ea3a79a7b0.zip
Avoid looping through line pointers twice in PageRepairFragmentation().
There doesn't seem to be any good reason to do the filling of the itemidbase[] array separately from the first traversal of the pointers. It's certainly not a win if there are any line pointers with storage, and even if there aren't, this change doesn't insert code into the part of the first loop that will be traversed in that case. So let's just merge the two loops. Yura Sokolov, reviewed by Claudio Freire Discussion: https://postgr.es/m/e49befcc6f1d7099834c6fdf5c675a60@postgrespro.ru
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions