aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-07-29 16:14:36 +0000
committerRobert Haas <rhaas@postgresql.org>2010-07-29 16:14:36 +0000
commit1a078629acac290c972edeb6ae096e26b48ca032 (patch)
tree07705780e57de980d6c92d4169f89f2c5673a7a0 /src/backend/parser/parse_expr.c
parent04e17bae50a73af524731fa11210d5c3f7d8e1f9 (diff)
downloadpostgresql-1a078629acac290c972edeb6ae096e26b48ca032.tar.gz
postgresql-1a078629acac290c972edeb6ae096e26b48ca032.zip
Fix possible page corruption by ALTER TABLE .. SET TABLESPACE.
If a zeroed page is present in the heap, ALTER TABLE .. SET TABLESPACE will set the LSN and TLI while copying it, which is wrong, and heap_xlog_newpage() will do the same thing during replay, so the corruption propagates to any standby. Note, however, that the bug can't be demonstrated unless archiving is enabled, since in that case we skip WAL logging altogether, and the LSN/TLI are not set. Back-patch to 8.0; prior releases do not have tablespaces. Analysis and patch by Jeff Davis. Adjustments for back-branches and minor wordsmithing by me.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions