pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: coleman.rik@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: 34.16. The Password File error re windows pgpass.conf location
Date: Tue, 9 Aug 2022 11:36:55 +0800
Message-ID: <20220809033655.5tcji7cnib2x35i6@jrouhaud> (raw)
In-Reply-To: <669376.1659995138@sss.pgh.pa.us>
References: <165998541845.302446.619834691832600784@wrigleys.postgresql.org>
	<669376.1659995138@sss.pgh.pa.us>

Hi,

On Mon, Aug 08, 2022 at 05:45:38PM -0400, Tom Lane wrote:
> PG Doc comments form <noreply@postgresql.org> 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.





view thread (3+ messages)

Message-ID: <20220809033655.5tcji7cnib2x35i6@jrouhaud>
Permalink:  ../20220809033655.5tcji7cnib2x35i6@jrouhaud/
Also on:    postgresql.org/message-id/20220809033655.5tcji7cnib2x35i6@jrouhaud

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: rjuju123@gmail.com, tgl@sss.pgh.pa.us, coleman.rik@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: 34.16. The Password File error re windows pgpass.conf location
  In-Reply-To: <20220809033655.5tcji7cnib2x35i6@jrouhaud>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox