Re: BUG #15346: Replica fails to start after the crash
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: pgsql-bugs@lists.postgresql.org,Michael Paquier
<michael@paquier.xyz>,Alexander Kukushkin <cyberdemn@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,Dmitry Dolgov
<9erthalion6@gmail.com>
Date: 2018-08-28T05:08:33Z
Lists: pgsql-bugs, pgsql-hackers
On August 28, 2018 11:44:09 AM GMT+09:00, Michael Paquier <michael@paquier.xyz> wrote: >On Sat, Aug 25, 2018 at 09:54:39AM +0200, Alexander Kukushkin wrote: >> Why the number of tuples in the xlog is greater than the number of >> tuples on the index page? >> Because this page was already overwritten and its LSN is HIGHER than >> the current LSN! > >That's annoying. Because that means that the control file of your >server maps to a consistent point which is older than some of the >relation pages. How was the base backup of this node created? Please >remember that when taking a base backup from a standby, you should >backup the control file last, as there is no control of end backup with >records available. So it seems to me that the origin of your problem >comes from an incorrect base backup expectation? Uh, where is that "control file last" bit coming from? Andres -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Commits
-
Ensure correct minimum consistent point on standbys
- 65f39408ee71 9.3.25 landed
- d9638a326f72 9.4.20 landed
- f3520ff6fbf1 9.5.15 landed
- 4a9a5bb3fd2a 9.6.11 landed
- 2c8cff5dd60b 10.6 landed
- c34f8078aa35 11.0 landed
- c186ba135eca 12.0 landed
-
Prevent references to invalid relation pages after fresh promotion
- 8d68ee6f31ca 9.6.10 cited