aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2020-07-06 13:47:29 -0700
committerPeter Geoghegan <pg@bowt.ie>2020-07-06 13:47:29 -0700
commit28c16f4947df0a98c124ec1724faff629d6c77f7 (patch)
tree1288b2965c6b12a11c5a5556863245d4d1c8858b /src/backend/access/gist/gistxlog.c
parentf7f70d5e22aa2330b8cc31dfc8732cd26ef0bbdd (diff)
downloadpostgresql-28c16f4947df0a98c124ec1724faff629d6c77f7.tar.gz
postgresql-28c16f4947df0a98c124ec1724faff629d6c77f7.zip
Remove unnecessary PageIsEmpty() nbtree build check.
nbtree index builds cannot write out an empty page. That would mean that there was no way to create a pivot tuple pointing to the page one level up, since _bt_truncate() generates one based on page's firstright tuple. Replace the unnecessary PageIsEmpty() check with an assertion that checks that the page has space for at least two line pointers (the would-be high key line pointer, plus at least one valid "data item" tuple line pointer). The PageIsEmpty() check was added by commit 5d9f146c over 20 years ago. It looks like it has always been unnecessary.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions