pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Treat <xzilla@users.sourceforge.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: how is pitr replay interruption time determined?
Date: Mon, 27 Aug 2007 19:17:02 -0400
Message-ID: <10268.1188256622@sss.pgh.pa.us> (raw)
In-Reply-To: <200708271742.57392.xzilla@users.sourceforge.net>
References: <200708271742.57392.xzilla@users.sourceforge.net>

Robert Treat <xzilla@users.sourceforge.net> writes:
> LOG:  database system was interrupted while in recovery at log time 2007-07-30 
> 19:17:37 EDT

> I am curious how this date is determined by postgres/pitr?

It's the update timestamp in pg_control, which in essence is going to be
the completion time of the last checkpoint.  If the crash was during WAL
recovery, as it seems to be, it'd be the time the last "restart"
checkpoint was made.

I'm not sure why the phrase "at log time" is used.  It looks like
whoever wrote the message thought that the timestamp would be one taken
from the WAL data being replayed, but that's not what I see the code
doing.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <10268.1188256622@sss.pgh.pa.us>
Permalink:  ../10268.1188256622@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10268.1188256622@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, xzilla@users.sourceforge.net
  Subject: Re: how is pitr replay interruption time determined?
  In-Reply-To: <10268.1188256622@sss.pgh.pa.us>

* 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