Re: Official Windows Installer and Documentation - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: Official Windows Installer and Documentation
Date
Msg-id 20220728021749.da5xyrh7xbt6qm2c@jrouhaud
Whole thread Raw
In response to Re: Official Windows Installer and Documentation  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Official Windows Installer and Documentation
List pgsql-hackers
On Wed, Jul 27, 2022 at 07:02:51PM -0700, David G. Johnston wrote:
>
> In the end the problem is ours and cannot be simply assigned to a
> third-party.  So let's resolve it here (on this list, whatever the
> solution) where representatives from all parties are present.

We could amend the pg_upgrade (and maybe other if needed, but I don't see any
other occurences of RUNAS) documentation to be a bit more general, like the
non-windows part of it, maybe something like

For Windows users, you must be logged into an administrative account, and then
start a shell as the user running the postgres service and set the proper path.
Assuming a user named postgres and the binaries installed in C:\Program
Files\PostgreSQL\14:

RUNAS /USER:postgres "CMD.EXE"
SET PATH=%PATH%;C:\Program Files\PostgreSQL\14\bin;

It's ultimately up to the users to adapt the commands to match their
environment.



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: fairywren hung in pg_basebackup tests
Next
From: "David G. Johnston"
Date:
Subject: Re: Official Windows Installer and Documentation