Re: BUG #5602: Recovering from Hot-Standby file backup leads to the currupted indexes - Mailing list pgsql-bugs

From Chris
Subject Re: BUG #5602: Recovering from Hot-Standby file backup leads to the currupted indexes
Date
Msg-id 4e8b409e-a55c-4614-9482-e10de45221ff@f6g2000yqa.googlegroups.com
Whole thread Raw
In response to BUG #5602: Recovering from Hot-Standby file backup leads to the currupted indexes  ("Chris" <christoph.springer@magicinternet.de>)
List pgsql-bugs
Hi all,

the procedure that waits for the checkpoint location change looks
like::

function wait_for_checkpoint_location_change() {
    PRE_WAIT=$( pg_controldata $PGDATA | awk -F: '/Latest checkpoint
location/ { print $2 }' )
    log "Waiting for checkpoint"
    while true ; do
        sleep 5
        if [[ "$PRE_WAIT" != "$( pg_controldata $PGDATA | awk -F: '/
Latest checkpoint location/ { print $2 }' )" ]] ; then
            log "Checkpoint."
            return
        fi
    done
}


The grandchild database log has the following records about the
recovery process::

2010-08-06 09:48:31.266 CEST,,,30649,,4c5bbe46.77b9,15,,2010-08-06
09:48:22 CEST,,0,LOG,00000,"restored log file
""000000010000005B000000DC"" from archive",,,
,,,,,,""
2010-08-06 09:48:31.564 CEST,,,30649,,4c5bbe46.77b9,16,,2010-08-06
09:48:22 CEST,,0,LOG,00000,"consistent recovery state reached at 5B/
DD000000",,,,,,,,,""
2010-08-06 09:48:31.751 CEST,,,30649,,4c5bbe46.77b9,17,,2010-08-06
09:48:22 CEST,,0,LOG,00000,"restored log file
""000000010000005B000000DD"" from archive",,,
,,,,,,""

Regards,

-- Chris

pgsql-bugs by date:

Previous
From: "Adam Radlowski"
Date:
Subject: BUG #5605: round(attr_name,int) works bad
Next
From: "Frank Heikens"
Date:
Subject: BUG #5606: DEFERRABLE and DEFERRABLE INITIALLY DEFERRED are the same