aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spginsert.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-12-03 22:13:16 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-12-03 23:16:01 +0200
commit22122c83f1331d03e8317afbfcfbb65bef9c82d2 (patch)
tree1b96db614825d402f9502bf5eb71db1741fac98b /src/backend/access/spgist/spginsert.c
parent4a8adfd4d09c7885daf548ecd53d4999f168a174 (diff)
downloadpostgresql-22122c83f1331d03e8317afbfcfbb65bef9c82d2.tar.gz
postgresql-22122c83f1331d03e8317afbfcfbb65bef9c82d2.zip
Fix full-page writes of internal GIN pages.
Insertion to a non-leaf GIN page didn't make a full-page image of the page, which is wrong. The code used to do it correctly, but was changed (commit 853d1c3103fa961ae6219f0281885b345593d101) because the redo-routine didn't track incomplete splits correctly when the page was restored from a full page image. Of course, that was not right way to fix it, the redo routine should've been fixed instead. The redo-routine was surreptitiously fixed in 2010 (commit 4016bdef8aded77b4903c457050622a5a1815c16), so all we need to do now is revert the code that creates the record to its original form. This doesn't change the format of the WAL record. Backpatch to all supported versions.
Diffstat (limited to 'src/backend/access/spgist/spginsert.c')
0 files changed, 0 insertions, 0 deletions