Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phWmy-0005sj-Dv for pgsql-admin@arkaria.postgresql.org; Wed, 29 Mar 2023 14:28:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phWmx-0003aE-BP for pgsql-admin@arkaria.postgresql.org; Wed, 29 Mar 2023 14:28:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phWmw-0003a0-Up for pgsql-admin@lists.postgresql.org; Wed, 29 Mar 2023 14:28:35 +0000 Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phWmt-00059O-Vb for pgsql-admin@lists.postgresql.org; Wed, 29 Mar 2023 14:28:34 +0000 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-53d277c1834so296076297b3.10 for ; Wed, 29 Mar 2023 07:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680100110; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=SPTO8u74NBwUrQK17FJ8MubCMNCFSHNOR2BUSABV3LQ=; b=OI8+RecjWxZ7kCDIH99ZnobgpNCYHMzLpNzI+cA+O0uiVuypZIHJjKafJqTPn2U9eF cZI9ZF8K8fTIm2f+Of3Gk758MyRDxTcU0wb00Hf+6CKv2VPNdby4zmq17y3TllpxjdWh FeZgBU1o5smdzpqMklZFnQWJZxIZoAyBrs7xJqp/x0YmOY8mRF9MftwKnUF6FFONdFv9 TpQSQt8FL4Tbj2PwdC0w2scRJXXi7Qkk46qeFNd6DMyDofM38aDQ9tFhtyBKYDtNO4cS uup7EGKwSN+Bj8vdrpXWgP0KCQY8ofgtOSW7xlSld58TYv7R0Z164FyhPjFHj7mj+bTo Uz4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680100110; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=SPTO8u74NBwUrQK17FJ8MubCMNCFSHNOR2BUSABV3LQ=; b=hScd2sgI9pXBBpvVXsE3eOKYfHWbxusGqM9/+9dGWG61Vi4UY9L9NetZvpYxlowxqd hPSs57/KHUdTrJwDgTAWd+l+cfWidOvZtuzW2iIWz0VCp6OTpLoRVyFRvqQj0YSV6E3a MhwMWg3NGbGp6tUBiOdCN0IoE8FGZjnBx046UI23Mdpa2DENMzV2da+Cu6xeSax9oc7G ucArcwgosZ6MCJTNZ27FOTbHnLHkBUf52svkE0M8b7MWVaJ2ANtfkZYgnmfA969kYixU WawAbUVii57Ys6Ezg8qHtDXqyE51eDumQiTErUlvszASYwrHdR84zdY+ZNtHQ4InXhFj yPig== X-Gm-Message-State: AAQBX9fqXI63ZSO+Du639UVsvvdscX2Pe6V2fxxzjXEN/onGP44Ctyiv cb+QWLXyskwt7Pz6PFkZHoKM5SRFcDU= X-Google-Smtp-Source: AKy350btO0ZO4UGhcZ1mNa5vCyB46fD4oEJYrScl7/JrIy62ZB/gE7HkZsfPYqorxlybpsb1aV2A/A== X-Received: by 2002:a81:1cd8:0:b0:538:e356:31b4 with SMTP id c207-20020a811cd8000000b00538e35631b4mr2573324ywc.5.1680100110310; Wed, 29 Mar 2023 07:28:30 -0700 (PDT) Received: from ?IPV6:2600:1700:bd2c:b810:a923:4337:21d9:104c? ([2600:1700:bd2c:b810:a923:4337:21d9:104c]) by smtp.googlemail.com with ESMTPSA id dg20-20020a05690c0fd400b00545a08184d3sm2972874ywb.99.2023.03.29.07.28.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 07:28:30 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------9gypzQvL63kSb4hjcTRzjfOY" Message-ID: Date: Wed, 29 Mar 2023 09:28:29 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Host name in .pgpass Content-Language: en-US To: pgsql-admin@lists.postgresql.org References: <342987862.335875.1680099854060@webmailb.networksolutionsemail.com> From: Ron In-Reply-To: <342987862.335875.1680099854060@webmailb.networksolutionsemail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------9gypzQvL63kSb4hjcTRzjfOY Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit /etc/hosts is not case sensitive, and neither is the value passed via "--hosts=". Thus, it is completely reasonable that .pgpass be case-insensitive. On 3/29/23 09:24, c Campo wrote: > Since PostgreSQL runs on UNIX/LINUX/Win systems, which ARE case sensitive > operating systems, and since PostgreSQL database table field names ARE > case sensitive, then I would assume that case sensitivity would carry over > to the .pgpass table. >> On March 29, 2023 10:16 AM Ron wrote: >> >> >> >> https://www.postgresql.org/docs/current/libpq-pgpass.html doesn't mention >> anything about host name case sensitivity, but my experience is that the >> the field *IS* case sensitive. >> >> Am I missing some other bit of documentation? >> >> $ psql --host=FISPTAPPGS302a.itocservices.com -c "\q" >> >> $ psql --host=FISPTAPPGS302A.itocservices.com -c "\q" >> Password for user postgres: >> psql: error: fe_sendauth: no password supplied >> >> >> >> -- >> Born in Arizona, moved to Babylonia. -- Born in Arizona, moved to Babylonia. --------------9gypzQvL63kSb4hjcTRzjfOY Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit /etc/hosts is not case sensitive, and neither is the value passed via "--hosts=".

Thus, it is completely reasonable that .pgpass be case-insensitive.

On 3/29/23 09:24, c Campo wrote:
Since PostgreSQL runs on UNIX/LINUX/Win systems, which ARE case sensitive operating systems, and since PostgreSQL database table field names ARE case sensitive, then I would assume that case sensitivity would carry over to the .pgpass table.
On March 29, 2023 10:16 AM Ron <ronljohnsonjr@gmail.com> wrote:



https://www.postgresql.org/docs/current/libpq-pgpass.html doesn't mention anything about host name case sensitivity, but my experience is that the the field IS case sensitive.

Am I missing some other bit of documentation?

$ psql --host=FISPTAPPGS302a.itocservices.com -c "\q"

$ psql --host=FISPTAPPGS302A.itocservices.com -c "\q"
Password for user postgres:
psql: error: fe_sendauth: no password supplied



--
Born in Arizona, moved to Babylonia.

--
Born in Arizona, moved to Babylonia.
--------------9gypzQvL63kSb4hjcTRzjfOY--