pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
34.16. The Password File error re windows pgpass.conf location
3+ messages / 3 participants
[nested] [flat]

* 34.16. The Password File error re windows pgpass.conf location
@ 2022-08-08 19:03  PG Doc comments form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Doc comments form @ 2022-08-08 19:03 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: coleman.rik@gmail.com

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/libpq-pgpass.html
Description:

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
                            ^^^^^^^^

Thanks, 
rik


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: 34.16. The Password File error re windows pgpass.conf location
@ 2022-08-08 21:45  Tom Lane <tgl@sss.pgh.pa.us>
  parent: PG Doc comments form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2022-08-08 21:45 UTC (permalink / raw)
  To: coleman.rik@gmail.com; +Cc: pgsql-docs@lists.postgresql.org

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.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: 34.16. The Password File error re windows pgpass.conf location
@ 2022-08-09 03:36  Julien Rouhaud <rjuju123@gmail.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Julien Rouhaud @ 2022-08-09 03:36 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: coleman.rik@gmail.com; pgsql-docs@lists.postgresql.org

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.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2022-08-09 03:36 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 19:03 34.16. The Password File error re windows pgpass.conf location PG Doc comments form <noreply@postgresql.org>
2022-08-08 21:45 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-08-09 03:36   ` Julien Rouhaud <rjuju123@gmail.com>

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