Re: pg_promote() can cause busy loop - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: pg_promote() can cause busy loop
Date
Msg-id CAHGQGwGzueOCRXHAa=kTGfxMMvQzWVB19Qj0_E4GUEtyuz=L+w@mail.gmail.com
Whole thread Raw
In response to Re: pg_promote() can cause busy loop  (Michael Paquier <michael@paquier.xyz>)
Responses Re: pg_promote() can cause busy loop
List pgsql-hackers
On Thu, Sep 5, 2019 at 11:10 AM Michael Paquier <michael@paquier.xyz> wrote:
>
> On Thu, Sep 05, 2019 at 10:53:19AM +0900, Fujii Masao wrote:
> > It's ok to use PG_RETURN_BOOL(false) instead of breaking out of the loop
> > in that case. Which would make the code simpler.
>
> Okay.  I would have done so FWIW.
>
> > But I don't think it's worth warning about postmaster death here
> > because a backend will emit FATAL message like "terminating connection
> > due to unexpected postmaster exit" in secure_read() after
> > pg_promote() returns false.
>
> Good point, that could be equally confusing.

So, barring any objection, I will commit the attached patch.

Regards,

-- 
Fujii Masao

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: refactoring - share str2*int64 functions
Next
From: Pavel Stehule
Date:
Subject: Re: enhance SPI to support EXECUTE commands