diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-03-02 13:16:09 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-03-02 13:16:09 +0200 |
commit | 2502f45979fca76a6b19a07c98d7a41737a3dc7b (patch) | |
tree | 9a9b8864af37875045268276575a0d4456c948b8 /src/backend/access/gist/gistxlog.c | |
parent | bc8765e91c743d87f5658387b41e3a61cde54116 (diff) | |
download | postgresql-2502f45979fca76a6b19a07c98d7a41737a3dc7b.tar.gz postgresql-2502f45979fca76a6b19a07c98d7a41737a3dc7b.zip |
When a GiST page is split during index build, it might not have a buffer.
Previously it was thought that it's impossible as the code stands, because
insertions create buffers as tuples are cascaded downwards, and index
split also creaters buffers eagerly for all halves. But the example from
Jay Levitt demonstrates that it can happen, when the root page is split.
It's in fact OK if the buffer doesn't exist, so we just need to remove the
sanity check. In fact, we've been discussing the possibility of destroying
empty buffers to conserve memory, which would render the sanity check
completely useless anyway.
Fix by Alexander Korotkov
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions