Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba - Mailing list pgsql-general

From Tom Lane
Subject Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
Date
Msg-id 567474.1730299755@sss.pgh.pa.us
Whole thread Raw
In response to Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba  (Greg Sabino Mullane <htamfids@gmail.com>)
Responses Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
List pgsql-general
Greg Sabino Mullane <htamfids@gmail.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



pgsql-general by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
Next
From: "Daniel Westermann (DWE)"
Date:
Subject: Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba