doc: remove RUNAS instructions for pg_upgrade on Windows

None of our other tools have such a recommendation.

Reported-by: David G. Johnston

Discussion: https://postgr.es/m/CAKFQuwbpqP_DB8WhthnwbsUOT_qB=AK3PpBMmmMsYvENQFHhEg@mail.gmail.com

Backpatch-through: master
This commit is contained in:
Bruce Momjian 2023-11-13 12:40:38 -05:00
parent 5c62ecf6ec
commit 103ed24e31
1 changed files with 3 additions and 9 deletions

View File

@ -532,15 +532,9 @@ NET STOP postgresql-&majorversion;
</para>
<para>
For Windows users, you must be logged into an administrative account, and
then start a shell as the <literal>postgres</literal> user and set the proper path:
<programlisting>
RUNAS /USER:postgres "CMD.EXE"
SET PATH=%PATH%;C:\Program Files\PostgreSQL\&majorversion;\bin;
</programlisting>
and then run <application>pg_upgrade</application> with quoted directories, e.g.:
For Windows users, you must be logged into an administrative account,
and then run <application>pg_upgrade</application> with quoted
directories, e.g.:
<programlisting>
pg_upgrade.exe