diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-06-30 13:37:16 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-06-30 13:41:30 +0300 |
commit | fdf28853ae6a397497b79fea69f89f4f7b9aa991 (patch) | |
tree | 25f4732403b6f0c24d349e84803787f07723bbed /contrib/postgres_fdw/postgres_fdw.c | |
parent | b48ecf862b3896631660ee8d38054aded82a4f8b (diff) | |
download | postgresql-fdf28853ae6a397497b79fea69f89f4f7b9aa991.tar.gz postgresql-fdf28853ae6a397497b79fea69f89f4f7b9aa991.zip |
Don't call PageGetSpecialPointer() on page until it's been initialized.
After calling XLogInitBufferForRedo(), the page might be all-zeros if it was
not in page cache already. btree_xlog_unlink_page initialized the page
correctly, but it called PageGetSpecialPointer before initializing it, which
would lead to a corrupt page at WAL replay, if the unlinked page is not in
page cache.
Backpatch to 9.4, the bug came with the rewrite of B-tree page deletion.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions