From 96bc29edfde9b8ad0de573702a6b1c55f73ce912 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 15 May 2024 13:05:30 +0200 Subject: doc: Add standard Environment section to pg_upgrade ref page Reviewed-by: Daniel Gustafsson Discussion: https://www.postgresql.org/message-id/flat/8458c9c5-18f1-46d7-94c4-1c30e4f44908%40eisentraut.org --- doc/src/sgml/ref/pgupgrade.sgml | 98 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml index 10c842adb14..9877f2f01c6 100644 --- a/doc/src/sgml/ref/pgupgrade.sgml +++ b/doc/src/sgml/ref/pgupgrade.sgml @@ -939,6 +939,104 @@ psql --username=postgres --file=script.sql postgres + + Environment + + + Some environment variables can be used to provide defaults for command-line options: + + + + PGBINOLD + + + + The old PostgreSQL executable directory; option + /. + + + + + + PGBINNEW + + + + The new PostgreSQL executable directory; option + /. + + + + + + PGDATAOLD + + + + The old database cluster configuration directory; option + /. + + + + + + PGDATANEW + + + + The new database cluster configuration directory; option + /. + + + + + + PGPORTOLD + + + + The old cluster port number; option + /. + + + + + + PGPORTNEW + + + + The new cluster port number; option + /. + + + + + + PGSOCKETDIR + + + + Directory to use for postmaster sockets during upgrade; option + /. + + + + + + PGUSER + + + + Cluster's install user name; option + /. + + + + + + + Notes -- cgit v1.2.3