Re: please update ps display for recovery checkpoint - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: please update ps display for recovery checkpoint
Date
Msg-id 59A309AA-87C4-457E-A9D4-922BC5A418BA@amazon.com
Whole thread Raw
In response to Re: please update ps display for recovery checkpoint  (Michael Paquier <michael@paquier.xyz>)
Responses Re: please update ps display for recovery checkpoint
List pgsql-hackers
On 12/10/20, 7:54 PM, "Michael Paquier" <michael@paquier.xyz> wrote:
> However, I think that it would be better to have all those four code
> paths controlled by a single routine, where we pass down the
> checkpoint flags and fill in the ps string directly depending on what
> the caller wants to do.  This way, we will avoid any inconsistent
> updates if this stuff gets extended in the future, and there will be
> all the information at hand to extend the logic.  So I have simplified
> your patch as per the attached.  Thoughts?

This approach seems reasonable to me.  I've attached my take on it.

Nathan


Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit
Next
From: PegoraroF10
Date:
Subject: anonymous block returning like a function