Re: Strange issues with 9.2 pg_basebackup & replication

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange issues with 9.2 pg_basebackup & replication
Date: 2012-05-15 17:21:42
Message-ID: CAHGQGwGbDQ0VTxJDaqTyUb5+8ASDmUZ7a9Jjj6G45X6hVCc6sg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 14, 2012 at 4:04 AM, Josh Berkus <josh(at)agliodbs(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thom Brown 2012-05-15 17:29:32 Re: Strange issues with 9.2 pg_basebackup & replication
Previous Message Fujii Masao 2012-05-15 17:15:12 Re: Strange issues with 9.2 pg_basebackup & replication