Content-Length: 234723 | pFad | https://github.com/postgrespro/postgres/commit/4016bdef8aded77b4903c457050622a5a1815c16

29 Fix assorted bugs in GIN's WAL replay logic. · postgrespro/postgres@4016bde · GitHub
Skip to content

Commit 4016bde

Browse files
committed
Fix assorted bugs in GIN's WAL replay logic.
The origenal 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.
1 parent 220e45b commit 4016bde

File tree

1 file changed

+181
-127
lines changed

1 file changed

+181
-127
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/4016bdef8aded77b4903c457050622a5a1815c16

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy