aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-05-25 18:15:04 -0400
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-05-25 18:18:09 -0400
commit8da31837803e95f26642019d859c3309d1c125fa (patch)
tree3e8fda46c42f6264e4510d12680d8a301e7555b9 /src/backend/utils/adt/jsonb.c
parent9a65fb350717360c505de9df411024d47e55710b (diff)
downloadpostgresql-8da31837803e95f26642019d859c3309d1c125fa.tar.gz
postgresql-8da31837803e95f26642019d859c3309d1c125fa.zip
Fix error when trying to delete page with half-dead left sibling.
The new page deletion code didn't cope with the case the target page's right sibling was marked half-dead. It failed a sanity check which checked that the downlinks in the parent page match the lower level, because a half-dead page has no downlink. To cope, check for that condition, and just give up on the deletion if it happens. The vacuum will finish the deletion of the half-dead page when it gets there, and on the next vacuum after that the empty can be deleted. Reported by Jeff Janes.
Diffstat (limited to 'src/backend/utils/adt/jsonb.c')
0 files changed, 0 insertions, 0 deletions