Re: No default for (user-specific) service file location on Windows? - Mailing list pgsql-general

From Dominique Devienne
Subject Re: No default for (user-specific) service file location on Windows?
Date
Msg-id CAFCRh-_X1+E2inJeAr3jjttcoSnLpL9kGijcJjhcvxEdp7reSA@mail.gmail.com
Whole thread Raw
In response to Re: No default for (user-specific) service file location on Windows?  (Julien Rouhaud <rjuju123@gmail.com>)
Responses Re: No default for (user-specific) service file location on Windows?
List pgsql-general
On Thu, May 19, 2022 at 10:17 AM Julien Rouhaud <rjuju123@gmail.com> wrote:
> > Or is it instead a lack of symmetry in the implementations of these
> > two mechanisms?
>
> As far as I can see from the code it should be
> %APPDATA%\postgresql\.pg_service.conf
>
> Does this one work?

Yes it does! Thanks.

> There is a discrepancy (apart from the documentation) as the default
> file name is the same on Linux and Windows.

The doc is explicit about Windows for the password file,
probably should be for the service file as well IMHO.

It's unfortunate that the naming conventions are different.
Might need to be warned about in the doc too. My $0.02.

Could also be changed to try both on Windows, with or w/o the leading dot,
but I suspect this kind of change won't be considered worth implementing :).

Thanks again Julien, --DD



pgsql-general by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: No default for (user-specific) service file location on Windows?
Next
From: Julien Rouhaud
Date:
Subject: Re: No default for (user-specific) service file location on Windows?