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 1s9E0y-000ebl-MU for pgsql-admin@arkaria.postgresql.org; Tue, 21 May 2024 01:10:06 +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 1s9E0y-006KzQ-QH for pgsql-admin@arkaria.postgresql.org; Tue, 21 May 2024 01:10:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9E0y-006KzH-FD for pgsql-admin@lists.postgresql.org; Tue, 21 May 2024 01:10:04 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9E0u-001HTb-U3 for pgsql-admin@lists.postgresql.org; Tue, 21 May 2024 01:10:03 +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 44L19xlk3720223; Mon, 20 May 2024 21:09:59 -0400 From: Tom Lane To: Ron Johnson cc: Pgsql-admin Subject: Re: Comments in .pgpass file... In-reply-to: References: Comments: In-reply-to Ron Johnson message dated "Mon, 20 May 2024 21:01:45 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3720221.1716253799.1@sss.pgh.pa.us> Date: Mon, 20 May 2024 21:09:59 -0400 Message-ID: <3720222.1716253799@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > It seems that psql (or maybe libpq) doesn't like trailing comments. Why would you think it would take that? The manual says that lines beginning with '#' are comments, but not more than that. > But this does not: > 10.143.170.206:5432:*:11026270:Blarge # Host name: fubar If that acted as a comment, it'd be impossible to use passwords containing '#'. regards, tom lane