| From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> | 
|---|---|
| To: | Yoshinori Sano <yoshinori(dot)sano(at)gmail(dot)com> | 
| Cc: | pgsql-hackers(at)postgresql(dot)org | 
| Subject: | Re: Simple, safe hot backup and recovery | 
| Date: | 2009-06-05 09:25:08 | 
| Message-ID: | 3f0b79eb0906050225m270a392j1c7aabf419380bcb@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
Hi,
On Fri, Jun 5, 2009 at 5:10 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)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 | Content-Type | Size | 
|---|---|---|
| standalone_hot_backup.patch | text/x-patch | 659 bytes | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dickson S. Guedes | 2009-06-05 12:17:22 | Re: Synchronous replication: status of standby side | 
| Previous Message | Dave Page | 2009-06-05 08:31:06 | Re: It's June 1; do you know where your release is? |