Re: Streaming Replication patch for CommitFest 2009-09 - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Streaming Replication patch for CommitFest 2009-09
Date
Msg-id 3f0b79eb0909301833l240031a3j96067c7b89d56ae1@mail.gmail.com
Whole thread Raw
In response to Re: Streaming Replication patch for CommitFest 2009-09  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Hi,

On Thu, Sep 24, 2009 at 5:20 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
>> Meanwhile, can you work on the above items and submit a
>> new version, please?
>
> Yeah, sure.

The attached is the patch to tackle the items, against 'replication-orig' branch
in your git repository.

Changes:
    * Change PQgetXLogData() to return a malloc'd buffer instead of a
pointer of the internal buffer.
    * Remove PQmarkConsumed().
    * Introduce a new macro XLogIsNeeded() which encapsulates
(XLogArchivingActive() || XLogStreamingAllowed()).
    * Replace read/write_conninfo with just a long-enough field in shared mem.
    * Remove 'replication' database, and support a new keyword
'replication' for pg_hba.conf.
    * Include system_identifier in the replication startup handshake.
    * Add error handling a la bgwriter and have a retry loop within walreceiver.
    * Prevent the startup process from getting stuck when launching
walreceiver fails.

Since we might need to change the patch further, I've not modified the
document yet.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Attachment

pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: [PATCH] Reworks for Access Control facilities (r2311)
Next
From: Itagaki Takahiro
Date:
Subject: Re: Triggers on columns