Re: Simple, safe hot backup and recovery - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Simple, safe hot backup and recovery
Date
Msg-id 3f0b79eb0906050225m270a392j1c7aabf419380bcb@mail.gmail.com
Whole thread Raw
In response to Re: Simple, safe hot backup and recovery  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Simple, safe hot backup and recovery
List pgsql-hackers
Hi,

On Fri, Jun 5, 2009 at 5:10 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
>> psql $DB_NAME -c "SELECT pg_stop_backup();"
>> sleep 10 # Why we need this?
>> rm /var/lib/pgsql/backup_in_progress
>> tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
>
> Since all WAL files generated during backup have to be added into backup.tar,
> I guess that "sleep 10" waits until they are archived.

In v8.4, pg_stop_backup waits until all WAL files used during backup
are archived.
So, "sleep" is already unnecessary for standalone hot backup.

Here is one-line patch to get rid of the description of that needless
operation from
backup.sgml.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Attachment

pgsql-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: It's June 1; do you know where your release is?
Next
From: Andrew Dunstan
Date:
Subject: Re: It's June 1; do you know where your release is?