From: Morus Walter <morus.walter@tanto.de>
To: pgsql-admin@postgresql.org
Cc: Simon Riggs <simon@2ndquadrant.com>
Subject: Re: PITR WAL backups
Date: Fri, 4 Feb 2005 09:43:01 +0100
Message-ID: <16899.13717.792766.260214@tanto-xipolis.de> (raw)
In-Reply-To: <KGEFLMPJFBNNLNOOOPLGOEFFCIAA.simon@2ndquadrant.com>
References: <42012233.40700@everytruckjob.com>
<KGEFLMPJFBNNLNOOOPLGOEFFCIAA.simon@2ndquadrant.com>
Simon Riggs writes:
> >Mark Reidenbach wrote
>
> >The problem I'm having is that you need to
> > backup this wal
> > file before it's been archived to have a backup which is
> > consistent
>
> Not sure I agree. Can you explain some more?
>
> Is it that you have a very low transaction rate and log files take a
> long time to fill?
>
Independently from the transaction rate it's not clear to me, at which
point (that is after saving which WAL) an online backup will be safe
to be usable.
I start the backup, save the files, end the backup. Ok.
Now there are transactions during the backup. They are written to WALs.
Some of these WALs are archived but the last transaction might be stored
in WALs that are not archived yet, when the backup ends.
So when can I be sure, to have all transactions that occured during the
backup in archived WALs?
Do I just have to wait that there is one further WAL archived after
the backup?
If that's the case, then online backups at low transaction rates might
take some time. I guess one can live with that. If you keep the previous
backup and the WALs so far, you can still recover from that, while waiting
for the current backup to become safe.
But the documentation it didn't make clear to me, at which point I can
rely on the backup.
Morus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: morus.walter@tanto.de, simon@2ndquadrant.com
Subject: Re: PITR WAL backups
In-Reply-To: <16899.13717.792766.260214@tanto-xipolis.de>
References: <42012233.40700@everytruckjob.com> <KGEFLMPJFBNNLNOOOPLGOEFFCIAA.simon@2ndquadrant.com> <16899.13717.792766.260214@tanto-xipolis.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox