Re: Log connection establishment timings - Mailing list pgsql-hackers

From Melanie Plageman
Subject Re: Log connection establishment timings
Date
Msg-id CAAKRu_aCTSaCEr_p_7xRZ-XXkwVMRD8Cxx52_hGvL881igkvGw@mail.gmail.com
Whole thread Raw
In response to Re: Log connection establishment timings  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Log connection establishment timings
List pgsql-hackers
On Mon, Mar 3, 2025 at 9:07 AM Bertrand Drouvot
<bertranddrouvot.pg@gmail.com> wrote:
>
> I did not imagine that much ;-) I was just seeing this code being duplicated
> and just thought about to avoid the duplication. But now that I read your comments
> above then I think we could just macro-ize the child_type check (as you mentioned
> up-thread). That would avoid the risk to forget to update the 3 locations doing the
> exact same check should we add a new child type in the game.

Is there a word we could use to describe what B_BACKEND and
B_WAL_SENDER have in common? They are the only backend types that will
go through the kind of external connection establishment steps (I
think), but I don't know a very accurate way to make that distinction
(which is required to come up with a useful macro name).

- Melanie



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER
Next
From: Jelte Fennema-Nio
Date:
Subject: Re: Next commitfest app release is planned for March 18th