Re: loss of transactions in streaming replication - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: loss of transactions in streaming replication
Date
Msg-id CAHGQGwHncA_qFyugEWqRBS7KA8Cm-+n65nRMqrdBcZ4U4fkp+A@mail.gmail.com
Whole thread Raw
In response to Re: loss of transactions in streaming replication  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
On Wed, Oct 19, 2011 at 3:31 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
>> (2) for this marginal improvement, you're giving up including
>> PQerrorMessage(streamConn) in the error message that ultimately gets
>> omitted, which seems like a substantial regression as far as
>> debuggability is concerned.
>
> I think that it's possible to include PQerrorMessage() in the error
> message. Will change the patch.

Attached is the updated version of the patch. When walreceiver fails to
send data to WAL stream, it emits WARNING with the message including
PQerrorMessage(), and also it emits the following DETAIL message:

    Walreceiver process will be terminated after all available data
have been received from WAL stream.

Regards,

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

Attachment

pgsql-hackers by date:

Previous
From: "Dickson S. Guedes"
Date:
Subject: Re: Separating bgwriter and checkpointer
Next
From: "Dickson S. Guedes"
Date:
Subject: Re: Separating bgwriter and checkpointer