Re: Feature request: pg_basebackup --force

From: Magnus Hagander <magnus(at)hagander(dot)net>
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 10:46:45
Message-ID: BANLkTi=KRWB9Ju+7H9XTKjjvpcuJM-0KQA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Apr 9, 2011 at 20:26, Joshua Berkus <josh(at)agliodbs(dot)com> wrote:
> Magnus, all:
>
> 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?

That could certainly be useful, yes. But I have a feeling whomever
tries to get that into 9.1 will be killed - but it's certainly good to
put ont he list of things for 9.2.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-04-10 11:25:55 Re: switch UNLOGGED to LOGGED
Previous Message Noah Misch 2011-04-10 10:36:36 Re: BUG #5856: pg_attribute.attinhcount is not correct.