Re: Strange issues with 9.2 pg_basebackup & replication - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Strange issues with 9.2 pg_basebackup & replication
Date
Msg-id CAHGQGwGbDQ0VTxJDaqTyUb5+8ASDmUZ7a9Jjj6G45X6hVCc6sg@mail.gmail.com
Whole thread Raw
In response to Strange issues with 9.2 pg_basebackup & replication  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Strange issues with 9.2 pg_basebackup & replication
List pgsql-hackers
On Mon, May 14, 2012 at 4:04 AM, Josh Berkus <josh@agliodbs.com> wrote:
> Doing some beta testing, managed to produce this issue using the daily
> snapshot from Tuesday:
>
> 1. Created master server, loaded it with a couple dummy databases.
>
> 2. Created standby server.
>
> 3. Did pg_basebackup -x stream on standby server
>
> 4. Started standby server.
>
> 5. Realized I'd forgotten to create a recovery.conf.  Shut down the
> standby server, wrote a recovery.conf, and restarted it.

Before restarting it, you need to do pg_basebackup and make a base backup
onto the standby again. Since you started the standby without recovery.conf,
a series of WAL in the standby has gotten inconsistent with that in the master.
So you need a fresh backup to restart the standby.

Regards,

--
Fujii Masao


pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Strange issues with 9.2 pg_basebackup & replication
Next
From: Thom Brown
Date:
Subject: Re: Strange issues with 9.2 pg_basebackup & replication