diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-11-10 18:13:49 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-11-10 18:13:49 -0300 |
commit | a590f266e44c492d2a252ab9dee0cd88dbe06dc5 (patch) | |
tree | 30a99f05d925314c4c18d0491f0b866acec1ac43 /src/backend/utils/adt/numeric.c | |
parent | c8df9477f8ce48b202de989984f90dd78e1bba31 (diff) | |
download | postgresql-a590f266e44c492d2a252ab9dee0cd88dbe06dc5.tar.gz postgresql-a590f266e44c492d2a252ab9dee0cd88dbe06dc5.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions