From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: loss of transactions in streaming replication |
Date: | 2011-10-24 12:40:49 |
Message-ID: | CAHGQGwFFm9KaErzX0v+czAaRorAUvB46LBRnEfLOqO4f7g_7BA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Oct 21, 2011 at 12:01 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Thu, Oct 20, 2011 at 9:51 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>> On Thu, Oct 20, 2011 at 1:05 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>> OK, so this is an artifact of the changes to make libpq communication
>>> bidirectional. But I'm still confused about where the error is coming
>>> from. In your OP, you wrote "In 9.2dev and 9.1, when walreceiver
>>> detects an error while sending data to WAL stream, it always emits
>>> ERROR even if there are data available in the receive buffer." So
>>> that implied to me that this is only going to trigger if you have a
>>> shutdown together with an awkwardly-timed error. But your scenario
>>> for reproducing this problem doesn't seem to involve an error.
>>
>> Yes, my scenario doesn't cause any real error. My original description was
>> misleading. The following would be closer to the truth:
>>
>> "In 9.2dev and 9.1, when walreceiver detects the termination of replication
>> connection while sending data to WAL stream, it always emits ERROR
>> even if there are data available in the receive buffer."
>
> Ah, OK. I think I now agree that this is a bug and that we should fix
> and back-patch.
The patch that I posted before is well-formed enough to be adopted?
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2011-10-24 13:48:40 | Re: termination of backend waiting for sync rep generates a junk log message |
Previous Message | Magnus Hagander | 2011-10-24 12:40:36 | Re: Updated version of pg_receivexlog |