WAL File archive time

Started by Israel Brewsterover 9 years ago2 messagesgeneral
Jump to latest
#1Israel Brewster
israel@ravnalaska.net

Simple question: are WAL files archived when full, or when recycled? That is, are the WAL archive files "up-to-date" other than the current WAL file, or will the archives always be wal_keep_segments behind?

-----------------------------------------------
Israel Brewster
Systems Analyst II
Ravn Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
-----------------------------------------------

Attachments:

Israel Brewster.vcftext/directory; name="Israel Brewster.vcf"; x-unix-mode=0666Download
#2Michael Paquier
michael@paquier.xyz
In reply to: Israel Brewster (#1)
Re: WAL File archive time

On Tue, Dec 6, 2016 at 7:24 AM, Israel Brewster <israel@ravnalaska.net> wrote:

Simple question: are WAL files archived when full, or when recycled?

When full.

That is, are the WAL archive files "up-to-date" other than the current WAL file,
or will the archives always be wal_keep_segments behind?

WAL archives are kept up to date, meaning that all the segments older
than the one being written are archived (well perhaps not if the
archiver lags behind). wal_keep_segments numbers the number of
segments kept in pg_xlog past the last completed checkpoint.
--
Michael

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general