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 1oLG3F-0006Ry-8m for pgsql-docs@arkaria.postgresql.org; Tue, 09 Aug 2022 03:37:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLG3D-000529-Q0 for pgsql-docs@arkaria.postgresql.org; Tue, 09 Aug 2022 03:37:03 +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 1oLG3D-0004zt-H2 for pgsql-docs@lists.postgresql.org; Tue, 09 Aug 2022 03:37:03 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oLG3A-00054s-MA for pgsql-docs@lists.postgresql.org; Tue, 09 Aug 2022 03:37:02 +0000 Received: by mail-pf1-x434.google.com with SMTP id q19so9727064pfg.8 for ; Mon, 08 Aug 2022 20:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Efv5V1kVwlpovcNsj+PPKlL7RvKtuJWeSB21CHnlHuU=; b=XFHjyhjI5fjeR9DRsNt8qnOo3s5TKsi4eLtwISVbfNdB541hJRs27jmOynRoGz81bH s6I6bOfOE7Jc2UfjOEz+W1abjexZWWuixw3vxwWi7qEh1OkVhJpC9QOgN8Df/Qg3qGYL vAwjDybsn7342k0yd6iCz6HsODlL9AsFEPvQ113y5FG/Sycilh6P/iefSmvoeBhuSjeu 7uO5osEi8r1AcsWQoinaVBfjEpztf54fPGVNbWZRAKgxW93aZ6ckYGGXhHrwNGHQo8Y8 SOeKxT/o4iNxhYHvoaczmyeX1QgJxgESl9G8J5zEoTMyekSZSt+bxk+S9f/YpXMS+cSf Nl3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Efv5V1kVwlpovcNsj+PPKlL7RvKtuJWeSB21CHnlHuU=; b=P+Rq3Qigpg64mMEFoetMsDlsRwd8kThbUYzCUZrdHewJ5obJz2b669XryATim3ew41 boRdaxyhB7HPAh3ccZjLQGwr0XeFGB9ubC9zCIf5w6OJbyBN7PQXaLurjr8ywgEZN0qF F5675aeJRnKsxiG5cwp5ydTkY6O2WSo4aHxCWpd6AkrMHsslwuFUqCeDkergEXXlqc0O 7pJUTQhJtzaGiNep8x1mKVLNchQhiPPLXabAwks+UnYy4V8TwhK0f2pZt0ZrVGWZdtpr nz96wcsDA0wakHr53gTg0BSxbsmc2y6p0ATgGb1JOeSu1+MuXuQvU5zKUeIu4CbzbRip KY6w== X-Gm-Message-State: ACgBeo2S0Tdr89mthvvYCGhRbGS9a67zqSOQ6kF2OowukexyVp6x784z dEA9IMT3wE53my+rovTFFZw= X-Google-Smtp-Source: AA6agR5V2VUoQQZDjkGdwJRT2hsBVfrLsXlIvxWX+K73YVKHdxBDVGQj7JVCSoN9lB3AXQ9W8KGYlA== X-Received: by 2002:a63:8848:0:b0:41c:45da:2db9 with SMTP id l69-20020a638848000000b0041c45da2db9mr17476707pgd.206.1660016218174; Mon, 08 Aug 2022 20:36:58 -0700 (PDT) Received: from jrouhaud (2001-b011-1005-74c5-7494-9c0b-bb5f-5abf.dynamic-ip6.hinet.net. [2001:b011:1005:74c5:7494:9c0b:bb5f:5abf]) by smtp.gmail.com with ESMTPSA id h8-20020a056a00000800b0052e6c058bccsm9448258pfk.61.2022.08.08.20.36.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 20:36:57 -0700 (PDT) Date: Tue, 9 Aug 2022 11:36:55 +0800 From: Julien Rouhaud To: Tom Lane Cc: coleman.rik@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: 34.16. The Password File error re windows pgpass.conf location Message-ID: <20220809033655.5tcji7cnib2x35i6@jrouhaud> References: <165998541845.302446.619834691832600784@wrigleys.postgresql.org> <669376.1659995138@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <669376.1659995138@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Aug 08, 2022 at 05:45:38PM -0400, Tom Lane wrote: > PG Doc comments form writes: > > On this page: https://www.postgresql.org/docs/current/libpq-pgpass.html > > It incorrectly states: > > %APPDATA%\postgresql\pgpass.conf > > In reality this files needs to be placed here on a Windows system: > > %APPDATA%\Roaming\postgresql\pgpass.conf > > ^^^^^^^^ > > Hmm ... that text has been like that since 2005, and you're the first > to report it's wrong. I suspect it's not wrong for the majority of > users, and instead there's something odd about your configuration. > I don't know enough about Windows to guess at exactly what. The code uses "CSIDL_APPDATA" for the root directory containing postgresql/pgpass.conf. According to https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables, it's the same as APPDATA, and the "Roaming" part should be part of it: > CSIDL_APPDATA > The file-system directory that serves as a common repository for > application-specific data. A typical path is C:\Documents and > Settings\username\Application Data or C:\Users\username\AppData\Roaming. So it doesn't look like anything changed there recently, and maybe the OP did some unusual configuration there.