From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Frederiko Costa <frederiko@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: archived WALL files question
Date: Mon, 19 Apr 2010 13:41:43 -0500
Message-ID: <4BCC5D970200002500030A80@gw.wicourts.gov> (raw)
In-Reply-To: <4BCC97BF.8090501@gmail.com>
References: <7965A9DCF12CC14984420BCC37B1608F25AC0B99AD@Elzar.grant.co.uk>
<4BC6F21D0200002500030956@gw.wicourts.gov>
<7965A9DCF12CC14984420BCC37B1608F25AC0B99E4@Elzar.grant.co.uk>
<4BCC7804.9070604@gmail.com>
<4BCC415D0200002500030A6B@gw.wicourts.gov>
<4BCC8E76.2040105@gmail.com>
<4BCC4BEB0200002500030A75@gw.wicourts.gov>
<4BCC97BF.8090501@gmail.com>
Frederiko Costa <frederiko@gmail.com> wrote:
> log files are being copied directly to the /mnt/data dir.
> However, the same segments are not in the pg_xlog
> dir. Is this a default behaviour?
Yes, the pg_xlog directory tries to keep a set of files ready to
receive WAL, and to hold it until the next checkpoint completes,
while the archive directory holds WAL files which have filled or
reached the archive_timeout limit. There can be some overlap, but
basically you can view the archive as "past" and pg_xlog as
"future", with some potential overlap in "the present".
> Must I set archive_timeout?
No, but once a database write occurs, you don't have it backed up
until the WAL file is written to the archive directory.
archive_timeout is for those who want some wall-clock bounds on how
much they can lose in, say, a drive failure. If the database can be
reloaded from some other source, or the data has no real value, it
may not pay to use this feature.
-Kevin
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: Kevin.Grittner@wicourts.gov, frederiko@gmail.com
Subject: Re: archived WALL files question
In-Reply-To: <4BCC5D970200002500030A80@gw.wicourts.gov>
References: <7965A9DCF12CC14984420BCC37B1608F25AC0B99AD@Elzar.grant.co.uk> <4BC6F21D0200002500030956@gw.wicourts.gov> <7965A9DCF12CC14984420BCC37B1608F25AC0B99E4@Elzar.grant.co.uk> <4BCC7804.9070604@gmail.com> <4BCC415D0200002500030A6B@gw.wicourts.gov> <4BCC8E76.2040105@gmail.com> <4BCC4BEB0200002500030A75@gw.wicourts.gov> <4BCC97BF.8090501@gmail.com> <4BCC5D970200002500030A80@gw.wicourts.gov>
* 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