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 1oflJH-0003bN-9n for pgsql-general@arkaria.postgresql.org; Tue, 04 Oct 2022 17:02:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oflJG-0002w9-7C for pgsql-general@arkaria.postgresql.org; Tue, 04 Oct 2022 17:02:22 +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 1oflJF-0002vz-Rg for pgsql-general@lists.postgresql.org; Tue, 04 Oct 2022 17:02:21 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oflJD-0000Kr-3M for pgsql-general@lists.postgresql.org; Tue, 04 Oct 2022 17:02:20 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-131dda37dddso16179529fac.0 for ; Tue, 04 Oct 2022 10:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date; bh=+qeJ7w0HWH62azrYKOyEhxw62s1TOj2xfjMFzxBp5F0=; b=avRNJgqUu/eUs+tUcRCy898gHZyB0/VDDxu6rLaAZ7EPcloHLNc1fiXFZIfMxEikN7 zjN8GWj0uCG7Qu//OP5SxqUTSPuuXptxW4bR9WA4TINrmCX1CbrmrqjQ2/7GkVRQXox0 kRDKSlqlvx78wvKhrUMzFnm3FmU0FzBv1lIVdpA3BvhWElkY1RJDMPCC62mhNkOttHPW Ef2VxyVFfRvtSgnGweCSzRpcGXfCSh3mIBtTO2JQsia0N6dlFSS+3rG1QIpZ4KFclfhd wWl/gz3xb9kHBoQOnLsf0DZC9adAD2KKtf5f8lVW5E6zej5rVZh5Kzc4qL+Iu7euueql AJYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date; bh=+qeJ7w0HWH62azrYKOyEhxw62s1TOj2xfjMFzxBp5F0=; b=NNIwLhlM7rkuYNG1ULDA65EIFZqaOOibzwrJ42p4bbb1wikLFUAlCA3lzHtlCLWvTl KnghmaZcCoVTA68ocsG6GmS+rxWyOODdbtCecwmIcnYTlFJYlKb4NoSK9k7Mwf81WAbq rJUKRZopZRaiQpKm5kMbQFUyl2ITBZhzA+waSpnVZmPOnnGVmT00THSwuotpBKP4hea4 PSTXIsAdRU83VWgzpqqoMSlAJvV0zEcl/uceCvnmhqUjdLczNt97ab3zwE8/Kp/+AXBu ZGejracoDzVua/CHwTtO9Pw5ZIM5hOJkM1FR2PIhjotUuogqYBePKccHBEJsq744Kr1D G3LA== X-Gm-Message-State: ACrzQf3oyEFaO3D+SH/hkhH09xvVHuno9H/idsaRfvOD4465VaFNldUD Xk7C2SPjYhyyGR8I0JIIJOLpgJiMiQE= X-Google-Smtp-Source: AMsMyM4szXmynNAlHg5T2wFidVVDdmCG/lJNsdIViCVVONAhCRjlfWQ0fR001jl09wTFhDxORW1K6A== X-Received: by 2002:a05:6870:2402:b0:12a:f442:501c with SMTP id n2-20020a056870240200b0012af442501cmr384428oap.95.1664902936688; Tue, 04 Oct 2022 10:02:16 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id a9-20020a0568300b8900b00655bbb53c55sm3107989otv.15.2022.10.04.10.02.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Oct 2022 10:02:15 -0700 (PDT) Message-ID: <393e2cf2-847b-047a-fe31-3267ae41f0a6@gmail.com> Date: Tue, 4 Oct 2022 12:02:15 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 To: pgsql-general@lists.postgresql.org Content-Language: en-US From: Ron Subject: fully qualified domain names and .pgpass Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sometimes (both interactively and via script) I access a remote Pg server via just the bare host name "foobar", and other times via the FQDN "foobar.example.com". I've only been able to get this to work by having two lines in the .pgpass file: foobar:5432:postgres:Allegedly.Strong.Password foobar.example.com:5432:postgres:Allegedly.Strong.Password But I'd rather have only one line.  Is there any way to do that? -- Angular momentum makes the world go 'round.