Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Constant WAL replay


  • From: Hans-Jürgen Schönig <postgres(at)cybertec(dot)at>
  • To: pgsql-hackers(at)postgresql(dot)org, eg(at)cybertec(dot)at
  • Subject: Constant WAL replay
  • Date: Sun, 24 Apr 2005 08:10:34 +0200
  • Message-id: <426B385A(dot)1060103(at)cybertec(dot)at>

We have toyed around with PostgreSQL's WAL structure and we are wondering whether it is (theoretically) possible to replay WAL records coming from a remote host while a system is working in read only mode.

The idea: We are looking for a way to implement a synchronous single-master / multiple slaves systems. Meanwhile we are able to serialize / deserialize WAL records and send them to a group communication system which transports those records to the slave database. This is not hard to do. The problem is: How can we replay data on the slave while the slave is answering read-only SQL-statements?

As far as I understand the code we can either recover the system or answer SQL statements. Which kind of modifications are necessary to replay and answer at the same time? (assuming that locks and transactional information are available on the slave).

Input is very much appreciated.

	Best regards,

		Hans

--
Cybertec Geschwinde u Schoenig
Schoengrabern 134, A-2020 Hollabrunn, Austria
Tel: +43/664/393 39 74
www.cybertec.at, www.postgresql.at




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group