postgresql/src/backend
Tom Lane 4016bdef8a Fix assorted bugs in GIN's WAL replay logic.
The original coding was quite sloppy about handling the case where
XLogReadBuffer fails (because the page has since been deleted).  This
would result in either "bad buffer id: 0" or an Assert failure during
replay, if indeed the page were no longer there.  In a couple of places
it also neglected to check whether the change had already been applied,
which would probably result in corrupted index contents.  I believe that
bug #5703 is an instance of the first problem.  These issues could show up
without replication, but only if you were unfortunate enough to crash
between modification of a GIN index and the next checkpoint.

Back-patch to 8.2, which is as far back as GIN has WAL support.
2010-10-11 19:04:37 -04:00
..
access Fix assorted bugs in GIN's WAL replay logic. 2010-10-11 19:04:37 -04:00
bootstrap Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
catalog Support triggers on views. 2010-10-10 13:45:07 -04:00
commands Support triggers on views. 2010-10-10 13:45:07 -04:00
executor Support triggers on views. 2010-10-10 13:45:07 -04:00
foreign Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
lib Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
libpq Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
main Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
nodes Support triggers on views. 2010-10-10 13:45:07 -04:00
optimizer Improve the planner's simplification of NOT constructs. 2010-10-10 23:19:50 -04:00
parser Support triggers on views. 2010-10-10 13:45:07 -04:00
po Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
port Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
postmaster Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
regex Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
replication Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
rewrite Support triggers on views. 2010-10-10 13:45:07 -04:00
snowball Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
storage Improve messages for too many private files/dirs. Per Alexey Parshin. 2010-09-28 18:08:02 -04:00
tcop Add a SECURITY LABEL command. 2010-09-27 20:55:27 -04:00
tsearch Reduce the memory requirement for large ispell dictionaries. 2010-10-06 19:31:05 -04:00
utils Support triggers on views. 2010-10-10 13:45:07 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.mk Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Makefile The port/pg_latch.c symlink ought to be removed by make distclean. 2010-09-21 16:53:25 -04:00
nls.mk Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00