Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

xlog.c

Blame
    • Heikki Linnakangas's avatar
      9cd6685f
      In the checkpoint written at the end of archive recovery, the WAL page header · 9cd6685f
      Heikki Linnakangas authored
      was incorrectly initialized with timeline ID 0. That rendered the WAL page
      unrecoverable, making a subsequent archive recovery stop at that point.
      ThisTimeLineID needs to be initialized before calling AdvanceXLInsertBuffer().
      
      This fixes bug #5011 reported by James Bardin. Backpatch to 8.4, as the bug
      was introduced by the changes to use of bgwriter for writing the
      end-of-archive-recovery checkpoint. Patch by Tom Lane.
      9cd6685f
      History
      In the checkpoint written at the end of archive recovery, the WAL page header
      Heikki Linnakangas authored
      was incorrectly initialized with timeline ID 0. That rendered the WAL page
      unrecoverable, making a subsequent archive recovery stop at that point.
      ThisTimeLineID needs to be initialized before calling AdvanceXLInsertBuffer().
      
      This fixes bug #5011 reported by James Bardin. Backpatch to 8.4, as the bug
      was introduced by the changes to use of bgwriter for writing the
      end-of-archive-recovery checkpoint. Patch by Tom Lane.