Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 96bc29e

Browse files
committed
doc: Add standard Environment section to pg_upgrade ref page
Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://www.postgresql.org/message-id/flat/8458c9c5-18f1-46d7-94c4-1c30e4f44908%40eisentraut.org
1 parent cff9424 commit 96bc29e

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

doc/src/sgml/ref/pgupgrade.sgml

+98
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,104 @@ psql --username=postgres --file=script.sql postgres
939939

940940
</refsect1>
941941

942+
<refsect1>
943+
<title>Environment</title>
944+
945+
<para>
946+
Some environment variables can be used to provide defaults for command-line options:
947+
948+
<variablelist>
949+
<varlistentry>
950+
<term><envar>PGBINOLD</envar></term>
951+
952+
<listitem>
953+
<para>
954+
The old PostgreSQL executable directory; option
955+
<option>-b</option>/<option>--old-bindir</option>.
956+
</para>
957+
</listitem>
958+
</varlistentry>
959+
960+
<varlistentry>
961+
<term><envar>PGBINNEW</envar></term>
962+
963+
<listitem>
964+
<para>
965+
The new PostgreSQL executable directory; option
966+
<option>-B</option>/<option>--new-bindir</option>.
967+
</para>
968+
</listitem>
969+
</varlistentry>
970+
971+
<varlistentry>
972+
<term><envar>PGDATAOLD</envar></term>
973+
974+
<listitem>
975+
<para>
976+
The old database cluster configuration directory; option
977+
<option>-d</option>/<option>--old-datadir</option>.
978+
</para>
979+
</listitem>
980+
</varlistentry>
981+
982+
<varlistentry>
983+
<term><envar>PGDATANEW</envar></term>
984+
985+
<listitem>
986+
<para>
987+
The new database cluster configuration directory; option
988+
<option>-D</option>/<option>--new-datadir</option>.
989+
</para>
990+
</listitem>
991+
</varlistentry>
992+
993+
<varlistentry>
994+
<term><envar>PGPORTOLD</envar></term>
995+
996+
<listitem>
997+
<para>
998+
The old cluster port number; option
999+
<option>-p</option>/<option>--old-port</option>.
1000+
</para>
1001+
</listitem>
1002+
</varlistentry>
1003+
1004+
<varlistentry>
1005+
<term><envar>PGPORTNEW</envar></term>
1006+
1007+
<listitem>
1008+
<para>
1009+
The new cluster port number; option
1010+
<option>-P</option>/<option>--new-port</option>.
1011+
</para>
1012+
</listitem>
1013+
</varlistentry>
1014+
1015+
<varlistentry>
1016+
<term><envar>PGSOCKETDIR</envar></term>
1017+
1018+
<listitem>
1019+
<para>
1020+
Directory to use for postmaster sockets during upgrade; option
1021+
<option>-s</option>/<option>--socketdir</option>.
1022+
</para>
1023+
</listitem>
1024+
</varlistentry>
1025+
1026+
<varlistentry>
1027+
<term><envar>PGUSER</envar></term>
1028+
1029+
<listitem>
1030+
<para>
1031+
Cluster's install user name; option
1032+
<option>-U</option>/<option>--username</option>.
1033+
</para>
1034+
</listitem>
1035+
</varlistentry>
1036+
</variablelist>
1037+
</para>
1038+
</refsect1>
1039+
9421040
<refsect1>
9431041
<title>Notes</title>
9441042

0 commit comments

Comments
 (0)