From: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org, Josh Tolley <eggyknap(at)gmail(dot)com> |
Subject: | Re: pg_standby observation |
Date: | 2008-03-27 17:14:29 |
Message-ID: | 1206638069.4285.1434.camel@ebony.site |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, 2007-09-16 at 11:18 -0700, Jeff Davis wrote:
> 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.
Currently pg_standby just sits there waiting. If you can specify the
events you wish to monitor and what action to take when that event
happens, I can make it do this.
--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com
PostgreSQL UK 2008 Conference: http://www.postgresql.org.uk
From | Date | Subject | |
---|---|---|---|
Next Message | Brad Nicholson | 2008-03-27 17:21:24 | Re: page is uninitialized --- fixing |
Previous Message | Joseph S | 2008-03-27 16:02:22 | Re: Timezones in 8.2.7 |