aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-12-09 14:32:42 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-12-09 15:30:23 +0200
commite45057e0a7c4f5c6f1d662853c616eea26e9b0e4 (patch)
treeeca1c2045637095b21821ba10475c392f22a4af7 /src/tutorial/basics.source
parent85d85ff7ef04510f24fe5897e5535d765d7a293c (diff)
downloadpostgresql-e45057e0a7c4f5c6f1d662853c616eea26e9b0e4.tar.gz
postgresql-e45057e0a7c4f5c6f1d662853c616eea26e9b0e4.zip
Don't set reachedMinRecoveryPoint during crash recovery. In crash recovery,
we don't reach consistency before replaying all of the WAL. Rename the variable to reachedConsistency, to make its intention clearer. In master, that was an active bug because of the recent patch to immediately PANIC if a reference to a missing page is found in WAL after reaching consistency, as Tom Lane's test case demonstrated. In 9.1 and 9.0, the only consequence was a misleading "consistent recovery state reached at %X/%X" message in the log at the beginning of crash recovery (the database is not consistent at that point yet). In 8.4, the log message was not printed in crash recovery, even though there was a similar reachedMinRecoveryPoint local variable that was also set early. So, backpatch to 9.1 and 9.0.
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions