Re: Catching up Production from Warm Standby after maintenance - Please help

From: Scott Mead <scott(dot)lists(at)enterprisedb(dot)com>
To: Jennifer Spencer <jenniferm411(at)hotmail(dot)com>
Cc: "scott(dot)marlowe" <scott(dot)marlowe(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Catching up Production from Warm Standby after maintenance - Please help
Date: 2009-07-07 11:33:16
Message-ID: d3ab2ec80907070433u37921059n85ed1d5faf6ca4f4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Jul 7, 2009 at 5:12 AM, Jennifer Spencer
<jenniferm411(at)hotmail(dot)com>wrote:

>
> >
> > If you've moved on, so to speak, with the new primary, you restart the
> > old primary, now warm standby, the same way you initially created the
> > warm standby. issue the start hot backup command to the primary, copy
> > over all the data dir and start shipping WAL files to it before you
> > start continuous recovery.
>
> If I do that, the primary will not be clean anymore. It will be as
> unvacuumed and index-bloated as the warm standby. Or am I missing
> something?
>

I think that Scott's point was that once you have brought the standby
'alive', you have no other option but to start over. Warm-Standby isn't for
reindex type operations, i.e. it's a failover mechanism, not to be confused
with a switchover mechanism which lets you move back and forth easily. Once
you cut to the standby, you have to do a full re-sync to the old primary
system. What you're looking for is a replication system like Slony.

Are indexing and vacuuming hurting so much that you can't do them
online? Why not use 'create index concurrently' and set vacuum_cost_delay
to help keep these operations from impacting your production system? What
version of PG are you using?

-- Another Scott :-)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message User 2009-07-07 15:22:05 Java Persistence and Partitioned Tables Affecting "Zero" Rows
Previous Message Jennifer Spencer 2009-07-07 09:12:44 Re: Catching up Production from Warm Standby after maintenance - Please help