Feature request: pg_basebackup --force

From: Joshua Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Feature request: pg_basebackup --force
Date: 2011-04-09 18:26:14
Message-ID: 2014240922.53212.1302373574331.JavaMail.root@mail-1.01.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
San Francisco

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jesper Krogh 2011-04-09 18:53:31 Re: Evaluation of secondary sort key.
Previous Message Joshua Berkus 2011-04-09 18:23:10 Bug in pg_hba.conf or pg_basebackup concerning replication connections