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