Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: "Daniel Westermann (DWE)" <daniel(dot)westermann(at)dbi-services(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
Date: 2024-10-30 14:49:15
Message-ID: 567474.1730299755@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Sabino Mullane <htamfids(at)gmail(dot)com> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Westermann (DWE) 2024-10-30 15:07:32 Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
Previous Message Greg Sabino Mullane 2024-10-30 14:22:42 Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba