git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c8df947) | patch
BRIN: fix bug in xlog backup block counting
2014年11月10日 21:13:49 +0000 (18:13 -0300)
2014年11月10日 21:13:49 +0000 (18:13 -0300)
commit a590f266e44c492d2a252ab9dee0cd88dbe06dc5
BRIN: fix bug in xlog backup block counting

The code that generates the BRIN_XLOG_UPDATE removes the buffer
reference when the page that's target for the updated tuple is freshly
initialized. This is a pretty usual optimization, but was breaking the
case where the revmap buffer, which is referenced in the same WAL
record, is getting a backup block: the replay code was using backup
block index 1, which is not valid when the update target buffer gets
pruned; the revmap buffer gets assigned 0 instead. Make sure to use the
correct backup block index for revmap when replaying.

Bug reported by Fujii Masao.
src/backend/access/brin/brin_xlog.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /