pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: Mark Steben <msteben@autorevenue.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Warm Standby - log shipping
Date: Fri, 19 Dec 2008 17:11:26 +0000
Message-ID: <1229706686.4793.554.camel@ebony.2ndQuadrant> (raw)
In-Reply-To: <D52D639EA1DC422DA3807EB17AF72239@dei26g028534>
References: <D52D639EA1DC422DA3807EB17AF72239@dei26g028534>


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




view thread (10+ messages)  latest in thread

Message-ID: <1229706686.4793.554.camel@ebony.2ndQuadrant>
Permalink:  ../1229706686.4793.554.camel@ebony.2ndQuadrant/
Also on:    postgresql.org/message-id/1229706686.4793.554.camel@ebony.2ndQuadrant

 · 

reply

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: simon@2ndQuadrant.com, msteben@autorevenue.com
  Subject: Re: Warm Standby - log shipping
  In-Reply-To: <1229706686.4793.554.camel@ebony.2ndQuadrant>

* 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