public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Greg Sabino Mullane <[email protected]>
Cc: Daniel Westermann (DWE) <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
Date: Wed, 30 Oct 2024 10:49:15 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKAnmmKJ5PP4W=xDLsddoCUVGexOr_EVAG--jH7KGC-FBOB1Zg@mail.gmail.com>
References: <GV0P278MB0419EB5885DF99C5354804A9D24B2@GV0P278MB0419.CHEP278.PROD.OUTLOOK.COM>
<[email protected]>
<GV0P278MB04198D3BBE5F475C75D34C74D2542@GV0P278MB0419.CHEP278.PROD.OUTLOOK.COM>
<CAKAnmmKJ5PP4W=xDLsddoCUVGexOr_EVAG--jH7KGC-FBOB1Zg@mail.gmail.com>
Greg Sabino Mullane <[email protected]> writes:
> I'd echo the suggestion to strace this. You can use the pre_auth_delay
> setting to help facilitate that. See:
IIUC, the delays are rare and unpredictable, so that strace'ing seems
unlikely to be practical.
If rebuilding from source is feasible, you could insert monitoring
elog(LOG) calls around the name lookup (that is, around the
pg_getnameinfo_all call in src/backend/libpq/hba.c). This would
confirm or disprove the theory that the name lookup is the source
of the issue, which is about as much as we'd get out of strace.
regards, tom lane
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox