pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-admin@postgresql.org
Subject: Re: High Availability PostgreSQL HOWTO article
Date: Tue, 6 Aug 2002 17:49:40 -0400
Message-ID: <20020806174940.D29630@mail.libertyrms.com> (raw)
In-Reply-To: <1028662940.16115.55.camel@skymaster>
References: <E6F241DAF915E24F9E34757342EE3E2252D18A@ottas09a.ott.signiant.com>
	<20020806210150.N20768@vestdata.no>
	<1028662940.16115.55.camel@skymaster>

On Tue, Aug 06, 2002 at 03:42:19PM -0400, Robert M. Meyer wrote:

> I've been thinking about the debug flags that allow me to log all of the
> queries that pass through the system as a possible path to this.  It
> wouldn't be hard to write a perl/sed/awk/whatever script to strip out
> the 'DEBUG:' bits and removes the 'SELECT' queries, leaving only the
> 'UPDATE' and 'INSERT' queries.  This could be trapped by a process that
> writes out the stream to a process on the replica server that would just
> store them in a file.  In the event of a primary system failure, a
> process would detect the loss of the primary server, force the current
> transaction log into the database, turn off the receiver daemon, then
> take whatever actions are necessary to become the primary.

Sounds like what you want is replication via a replay of the WAL. 
Maybe take the work currently being done on PITR (over on -hackers)
and try to extend it?

A

-- 
----
Andrew Sullivan                               87 Mowat Avenue 
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110




view thread (5+ messages)  latest in thread

Message-ID: <20020806174940.D29630@mail.libertyrms.com>
Permalink:  ../20020806174940.D29630@mail.libertyrms.com/
Also on:    postgresql.org/message-id/20020806174940.D29630@mail.libertyrms.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: High Availability PostgreSQL HOWTO article
  In-Reply-To: <20020806174940.D29630@mail.libertyrms.com>
  References: <E6F241DAF915E24F9E34757342EE3E2252D18A@ottas09a.ott.signiant.com> <20020806210150.N20768@vestdata.no> <1028662940.16115.55.camel@skymaster> <20020806174940.D29630@mail.libertyrms.com>

* 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