From: Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
To: Chad Wagner <chad.wagner@gmail.com>
Cc: Eduardo J. Ortega <ejortegau@cable.net.co>
Cc: pgsql-admin@postgresql.org
Subject: Re: WAL files backup
Date: Fri, 16 Feb 2007 15:07:21 +0000
Message-ID: <45D5C8A9.8090002@mailnetwork.co.uk> (raw)
In-Reply-To: <81961ff50702160334x411e3aeau76ca57c628e0f45e@mail.gmail.com>
References: <945295.11491.qm@web55414.mail.re4.yahoo.com>
<200702152235.57473.ejortegau@cable.net.co>
<81961ff50702160334x411e3aeau76ca57c628e0f45e@mail.gmail.com>
Chad Wagner wrote:
> On 2/15/07, *Eduardo J. Ortega* <ejortegau@cable.net.co
> <mailto:ejortegau@cable.net.co>> wrote:
>
> After erasing the "less than names" WAL files, we add to tar the
> remaining
> WAL records (0003B, 0003C and so on on the example). The more WAL
> files you
> have after 0003B, the more up to date DB you get after restore
> (since it has
> more WAL files indicating more transactions that took place after
> the backup.
>
>
> Why bother trying to delete WAL files older than the .backup file?
> When PostgreSQL is in recovery mode it knows which WAL files are
> necessary to perform the recovery.
>
> Also, the documentation recommends excluding the pg_xlog directory
> when performing the base backup. Likely when it comes time to
> recovery the online WAL files have been archived already, so it is a
> risk of confusion I am sure.
If the OP is doing the same as myself, the WAL files are being archived
outside of pg_xlog (indeed outside of the PG data cluster) - it makes no
sense keeping around WAL files older than the .backup file because
they're not needed - in a day I generate ~5GB worth of WAL files which
aren't needed after the full backup runs at 2am, so it's a waste of
resources to keep them around or to worry about backing them up after
this time.
Andy.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: andy.shellam-lists@mailnetwork.co.uk, chad.wagner@gmail.com, ejortegau@cable.net.co
Subject: Re: WAL files backup
In-Reply-To: <45D5C8A9.8090002@mailnetwork.co.uk>
* 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