Re: Add Information during standby recovery conflicts

From: "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Masahiko Sawada <masahiko(dot)sawada(at)2ndquadrant(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add Information during standby recovery conflicts
Date: 2020-11-09 05:45:10
Message-ID: e2819497-ff8b-831c-e6aa-6f1e81b1e709@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 11/6/20 3:21 AM, Masahiko Sawada wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
>
>
>
> On Fri, Oct 30, 2020 at 6:02 PM Drouvot, Bertrand <bdrouvot(at)amazon(dot)com> wrote:
>> Hi,
>>
>> On 10/30/20 4:25 AM, Fujii Masao wrote:
>>> CAUTION: This email originated from outside of the organization. Do
>>> not click links or open attachments unless you can confirm the sender
>>> and know the content is safe.
>>>
>>>
>>>
>>> On 2020/10/30 10:29, Masahiko Sawada wrote:
>>>> ,
>>>>
>>>> On Thu, 29 Oct 2020 at 00:16, Fujii Masao
>>>> <masao(dot)fujii(at)oss(dot)nttdata(dot)com> wrote:
>>>>> I read v8 patch. Here are review comments.
>>>> Thank you for your review.
>>>>
> Thank you for updating the patch!
>
> Looking at the latest version patch
> (v8-0002-Log-the-standby-recovery-conflict-waits.patch), I think it
> doesn't address some comments from Fujii-san.
>
>>>>> When recovery conflict with buffer pin happens, log message is output
>>>>> every deadlock_timeout. Is this intentional behavior? If yes, IMO
>>>>> that's
>>>>> not good because lots of messages can be output.
>>>> Agreed.
> I think the latest patch doesn't fix the above comment. Log message
> for recovery conflict on buffer pin is logged every deadlock_timeout.
>
>>>> if we were to log the recovery conflict only once in bufferpin
>>>> conflict case, we would log it multiple times only in lock conflict
>>>> case. So I guess it's better to do that in all conflict cases.
>>> Yes, I agree that this behavior basically should be consistent between
>>> all cases.
> The latest patch seems not to address this comment as well.

Oh, I missed those ones, thanks for the feedback.

New version attached, so that recovery conflict will be logged only once
also for buffer pin and lock cases.

Bertrand

Attachment Content-Type Size
v8-0003-Log-the-standby-recovery-conflict-waits.patch text/plain 15.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2020-11-09 05:50:49 Re: logical streaming of xacts via test_decoding is broken
Previous Message Drouvot, Bertrand 2020-11-09 05:41:20 Re: [BUG]: segfault during update