doc: Add standard Environment section to pg_upgrade ref page
authorPeter Eisentraut
Wed, 15 May 2024 11:05:30 +0000 (13:05 +0200)
committerPeter Eisentraut
Wed, 15 May 2024 11:06:12 +0000 (13:06 +0200)
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

index 10c842adb1442493a2c639d74c1ffa93b5ffab53..9877f2f01c69139887b7cc32eba5c6abb9ca9b64 100644 (file)
@@ -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