Re: pg_stop_backup is not archiving latest transaction log from pg_xlog directory

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "girish R G peetle *EXTERN*" <giri(dot)anamika0(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_stop_backup is not archiving latest transaction log from pg_xlog directory
Date: 2013-06-19 11:02:14
Message-ID: A737B7A37273E048B164557ADEF4A58B17BB4567@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

girish R G peetle wrote:
> @Albe
> Even I was thinking to backup the transaction log files under pg_xlog directory. But my concern is,
> will it lead some kind of error or inconsistency ?

No.
During recovery, archived WAL files will overwrite the ones in
pg_xlog. The WAL files in pg_xlog will only be used if
no archived version is available.

As long as pg_xlog is backed up after the end of
pg_stop_backup(), you should be safe.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message girish R G peetle 2013-06-19 11:36:12 Re: pg_stop_backup is not archiving latest transaction log from pg_xlog directory
Previous Message Dan Kogan 2013-06-19 10:46:36 Seemingly hanging checkpoint