Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 68FE0474E50 for ; Tue, 6 Aug 2002 17:49:38 -0400 (EDT) Received: from mail.libertyrms.com (unknown [216.94.172.167]) by postgresql.org (Postfix) with ESMTP id D37F4474E44 for ; Tue, 6 Aug 2002 17:49:37 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 17cCCy-0006qy-00 for ; Tue, 06 Aug 2002 17:49:40 -0400 Date: Tue, 6 Aug 2002 17:49:40 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: High Availability PostgreSQL HOWTO article Message-ID: <20020806174940.D29630@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <20020806210150.N20768@vestdata.no> <1028662940.16115.55.camel@skymaster> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1028662940.16115.55.camel@skymaster>; from rmeyer@installs.com on Tue, Aug 06, 2002 at 03:42:19PM -0400 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/48 X-Sequence-Number: 5163 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 M6K 3E3 +1 416 646 3304 x110