Attached is the latest version of Synch Rep patch. Sorry for my late posting.
I fixed some bugs in v1patch and integrated walreceiver into core. Attached
contain some patches:
This is the whole patch of Synch Rep against head. This also contain
"Infrastructure changes for recover" patch by Simon because I'd like to
make walreceiver work in consistent recovery mode.
To be reviewed easily, I split synch_rep_v2.patch into 8 pieces.
This is the patch of signal handling changes for Synch Rep. I already
This is the patch of non-blocking pqcomm. Since walsender sends
xlog records and receive the reply from walreceiver concurrently, this
feature is needed.
This is the patch of new libpq API for Synch Rep. This is mainly used by
walreceiver. I didn't want to introduce a new communication layer,
I modified libpq for Synch Rep.
This is the patch for postmaster to read recovery.conf like GUC.
Thereby, processes other than startup process can also get
parameters in recovery.conf. Walreceiver gets a host / port of a primary
server from recovery.conf using this feature.
This is the patch of splitting XLogWrite into 3 pieces. Two of them are
used for walreceiver to write xlog records on the standby server.
This is the patch for sending xlog records. This contains
- walsender itself
- communication between walsender and backends
(other than signal handling changes)
- management of xlog positions
This is the patch of walreceiver which receives and writes xlog records.
Walreceiver works in consistent recovery mode.
This is the patch for archiver to work in consistent recovery mode. In
the standby server, walreceiver writes xlog records to pg_xlog, and
pg_standby reads them from archive location. So, someone has to
archive them. I make walreceiver start archiver for archiving them.
If you want to apply 8 patches one by one, please apply "Infrastructure
changes for recover" patch and create the following empty files first.
Since source code comments and documents are insufficient,
I think I will mainly enrich them next week. And, if there is a patch
which is hard to be reviewed, I will split it further.
Any comments welcome!
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
pgsql-hackers by date
|Next:||From: Michael Meskes||Date: 2008-11-14 10:17:27|
|Subject: Re: gram.y => preproc.y|
|Previous:||From: Dave Page||Date: 2008-11-14 10:04:16|
|Subject: Re: Simple postgresql.conf wizard|