doc: remove RUNAS instructions for pg_upgrade on Windows
authorBruce Momjian <[email protected]>
Mon, 13 Nov 2023 17:40:38 +0000 (12:40 -0500)
committerBruce Momjian <[email protected]>
Mon, 13 Nov 2023 17:41:04 +0000 (12:41 -0500)
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

doc/src/sgml/ref/pgupgrade.sgml

index 46e8a0b7467e17c7bcd964e64681d6df2b1c9eee..4f78e0e1c0bd8fdc3254dc1c223b4902cdcd1ad2 100644 (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