aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSetOp.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-05-02 22:28:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-05-02 22:28:05 +0000
commite55e6ecfe4e00ecb3f316b7b41d586ea2f12cd48 (patch)
tree9f3a0362416e812324ba543033f1b568a6e109d1 /src/backend/executor/nodeSetOp.c
parent3a0939eda264ec153f0f5db88b7b7273a0b04046 (diff)
downloadpostgresql-e55e6ecfe4e00ecb3f316b7b41d586ea2f12cd48.tar.gz
postgresql-e55e6ecfe4e00ecb3f316b7b41d586ea2f12cd48.zip
Fix replay of XLOG_HEAP_NEWPAGE WAL records to pay attention to the forknum
field of the WAL record. The previous coding always wrote to the main fork, resulting in data corruption if the page was meant to go into a non-default fork. At present, the only operation that can produce such WAL records is ALTER TABLE/INDEX SET TABLESPACE when executed with archive_mode = on. Data corruption would be observed on standby slaves, and could occur on the master as well if a database crash and recovery occurred after committing the ALTER and before the next checkpoint. Per report from Gordon Shannon. Back-patch to 8.4; the problem doesn't exist in earlier branches because we didn't have a concept of multiple relation forks then.
Diffstat (limited to 'src/backend/executor/nodeSetOp.c')
0 files changed, 0 insertions, 0 deletions