Skip site navigation (1) Skip section navigation (2)

Re: Warm Standby - log shipping

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Mark Steben <msteben(at)autorevenue(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Warm Standby - log shipping
Date: 2008-12-19 17:11:26
Message-ID: 1229706686.4793.554.camel@ebony.2ndQuadrant (view raw or flat)
Thread:
Lists: pgsql-admin
On Thu, 2008-12-18 at 16:43 -0500, Mark Steben wrote:
> 3. I am currently in a state where a log got partially copied and
> postgres
> cannot find a valid checkpoint to restart.  What is the best way to
> remedy
> this situation?  Pg_resetxlog perhaps?

Now, pg_resetxlogs, but in future don't delete WAL files that may be
needed for recovery.

You can use 

pg_controldata test | grep REDO | cut -d: -f 2

to find out the LSN of the last restartpoint, which can then be
converted into an xlogfilename using pg_xlogfile_name().

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support


In response to

pgsql-admin by date

Next:From: Simon RiggsDate: 2008-12-19 17:12:05
Subject: Re: Warm Standby - log shipping
Previous:From: Joshua D. DrakeDate: 2008-12-19 16:51:31
Subject: Re: Warm Standby - log shipping

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group