aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-11-17 18:42:04 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-11-17 18:45:46 +0200
commitc73669c0e0168923e3f9e787beec980f55af2bd8 (patch)
tree28d7663c466d8aad15ca3d577f2981d641f6d878 /src/backend/access/gist/gist.c
parent0f9692b40d1292f1b2640f026561908fd37b7407 (diff)
downloadpostgresql-c73669c0e0168923e3f9e787beec980f55af2bd8.tar.gz
postgresql-c73669c0e0168923e3f9e787beec980f55af2bd8.zip
Fix WAL-logging of B-tree "unlink halfdead page" operation.
There was some confusion on how to record the case that the operation unlinks the last non-leaf page in the branch being deleted. _bt_unlink_halfdead_page set the "topdead" field in the WAL record to the leaf page, but the redo routine assumed that it would be an invalid block number in that case. This commit fixes _bt_unlink_halfdead_page to do what the redo routine expected. This code is new in 9.4, so backpatch there.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions