From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | Tristan Partin <tristan(at)neon(dot)tech> |
Cc: | m(dot)litsarev(at)postgrespro(dot)ru, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: SQL function which allows to distinguish a server being in point in time recovery mode and an ordinary replica |
Date: | 2024-04-15 23:39:39 |
Message-ID: | Zh26u-ifdXMPTrdq@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Apr 15, 2024 at 04:06:03PM -0500, Tristan Partin wrote:
> Saw your patch for the first time today. Looks like your patch is messed up?
> You seem to have more of the diff at the bottom which seems to add a test.
> Want to send a v2 with a properly formatted patch?
FWIW, complicating more XLogRecoveryCtlData sends me shivers, these
days, because we have already a lot of recovery state to track within
it.
More seriously, I'm not much a fan of introducing more branches at the
bottom of readRecoverySignalFile() for the boolean flags tracking if
standby and/or archive recovery are triggered, even if these are
simple there are already too many of them. Perhaps we should begin
tracking all that as a set of bitmasks, then plug in the tracked state
in shmem for consumption in some SQL function.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2024-04-15 23:40:23 | [18] clarify the difference between pg_wchar, wchar_t, and Unicode code points |
Previous Message | Michael Paquier | 2024-04-15 23:30:46 | Re: Time to back-patch libxml deprecation fixes? |