Re: pg_standby observation

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Josh Tolley <eggyknap(at)gmail(dot)com>
Subject: Re: pg_standby observation
Date: 2007-09-16 18:18:13
Message-ID: 1189966693.5924.123.camel@jdavis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 2007-09-16 at 09:25 +0100, Simon Riggs wrote:
> Well, the definition of it working correctly is that a "restored log
> file..." message occurs. Even with archive_timeout set there could be
> various delays before that happens. We have two servers and a network
> involved, so the time might spike occasionally.
>

The problem is, a "restored log file message" might appear in a
different language or with a different prefix, depending on the
settings. That makes it hard to come up with a general solution, so
everyone has to use their own scripts that work with their logging
configuration.

In my particular case, I want to know if those logs aren't being
replayed, regardless of whether it's a network problem or a postgres
problem.

It would be nice if there was a more standardized way to see when
postgres replays a log successfully.

> Touching a file doesn't really prove its working either.
>

Right. It's the best I have now, however, and should detect "most" error
conditions.

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Boddie 2007-09-16 21:28:40 Re: Database reverse engineering
Previous Message Phoenix Kiula 2007-09-16 12:09:21 Re: Statistics collection question