Re: Feature request: pg_basebackup --force

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Joshua Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature request: pg_basebackup --force
Date: 2011-04-10 16:28:49
Message-ID: BANLkTi=DbJPpVAKJ+gtO-V4ye6FDghzamA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Apr 9, 2011 at 2:26 PM, Joshua Berkus <josh(at)agliodbs(dot)com> wrote:
> It seems a bit annoying to have to do an rm -rf * $PGDATA/ before resynching a standby using pg_basebackup.  This means that I still need to wrap basebackup in a shell script, instead of having it do everything for me ... especially if I have multiple tablespaces.
>
> Couldn't we have a --force option which would clear all data and tablespace directories before resynching?

What would be even more useful us some kind of support for
differential copy, a la rsync.

(Now I'm waiting for someone to tell me this is a pipe dream.)

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-04-10 16:31:11 Re: pgindent
Previous Message Andrew Dunstan 2011-04-10 16:25:10 Re: pgindent