Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpE3U-0003gQ-EE for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Aug 2018 14:42:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpE3S-0005zR-IV for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Aug 2018 14:42:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpE3S-0005zF-7S for pgsql-hackers@lists.postgresql.org; Mon, 13 Aug 2018 14:42:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpE3O-0004sI-K7 for pgsql-hackers@lists.postgresql.org; Mon, 13 Aug 2018 14:42:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7DEgeW2028511; Mon, 13 Aug 2018 10:42:40 -0400 From: Tom Lane To: Fabien COELHO cc: PostgreSQL Developers Subject: Re: libpq should not look up all host addresses at once In-reply-to: References: <4913.1533827102@sss.pgh.pa.us> Comments: In-reply-to Fabien COELHO message dated "Sat, 11 Aug 2018 14:15:44 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28509.1534171360.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 13 Aug 2018 10:42:40 -0400 Message-ID: <28510.1534171360@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Fabien COELHO writes: > In the same vein on a wrong password: > sh> psql "host=3Dno-such-host,local2.coelho.net,local3.coelho.net" > Password for user fabien: > psql: could not translate host name "no-such-host" to address: Name or= service not known > could not connect to server: Connection refused > Is the server running on host "local2.coelho.net" (127.0.0.2) a= nd accepting > TCP/IP connections on port 5432? > could not connect to server: Connection refused > Is the server running on host "local2.coelho.net" (127.0.0.3) a= nd accepting > TCP/IP connections on port 5432? > FATAL: password authentication failed for user "fabien" > The Fatal error does not really say for which host/ip the password fail. Yup, but that's not the province of this patch to improve. See https://www.postgresql.org/message-id/25918.1533918960@sss.pgh.pa.us for one that is trying to improve it. regards, tom lane