Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t5pfh-008qUw-Ey for pgsql-general@arkaria.postgresql.org; Tue, 29 Oct 2024 17:06:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t5pff-000jeO-QL for pgsql-general@arkaria.postgresql.org; Tue, 29 Oct 2024 17:06:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t5pff-000jeG-Fb for pgsql-general@lists.postgresql.org; Tue, 29 Oct 2024 17:06:19 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t5pfc-003Txg-Rh for pgsql-general@lists.postgresql.org; Tue, 29 Oct 2024 17:06:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 49TH6Ctc249665; Tue, 29 Oct 2024 13:06:12 -0400 From: Tom Lane To: "Daniel Westermann (DWE)" cc: "pgsql-general@lists.postgresql.org" Subject: Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba In-reply-to: References: Comments: In-reply-to "Daniel Westermann (DWE)" message dated "Tue, 29 Oct 2024 16:30:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <249663.1730221572.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 29 Oct 2024 13:06:12 -0400 Message-ID: <249664.1730221572@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Daniel Westermann (DWE)" writes: > we're facing a strange issue with delays between "connection received" a= nd "connection authenticated". > Has anyone experienced such a behavior? It seems clear that this is some= how related to name resolution but we couldn't reproduce something like th= is on the OS using dig (in a loop several hundred of times). It is also on= ly happening from time to time, and not constantly. FWIW, I do have vague memories of other complaints like this, although not of whether solutions were found. It was awhile ago though. It might be worth searching our mailing list archives. regards, tom lane