doc: Update example version numbers in pg_upgrade documentation
authorPeter Eisentraut
Tue, 13 Jun 2017 20:10:11 +0000 (16:10 -0400)
committerPeter Eisentraut
Tue, 13 Jun 2017 20:10:11 +0000 (16:10 -0400)
The exact numbers don't matter, since they are examples, but it was
looking quite dated.

For the target version, we now automatically substitute the current
major version.  The updated example source version should be good for a
couple of years.

doc/src/sgml/ref/pgupgrade.sgml

index bf58a0a7d834671fbb914d5034b4e7b86ef85cea..40c978730c8c2d0ff725e25ece77a7777b7f6ad5 100644 (file)
@@ -38,9 +38,9 @@
   pg_upgrade (formerly called pg_migrator) allows data
   stored in PostgreSQL data files to be upgraded to a later PostgreSQL
   major version without the data dump/reload typically required for
-  major version upgrades, e.g. from 8.4.7 to the current major release
+  major version upgrades, e.g. from 9.6.3 to the current major release
   of PostgreSQL.  It is not required for minor version upgrades, e.g. from
-  9.0.1 to 9.0.4.
+  9.6.2 to 9.6.3.
  
 
  
@@ -66,7 +66,7 @@
 
   
    pg_upgrade supports upgrades from 8.4.X and later to the current
-   major release of PostgreSQL, including snapshot and alpha releases.
+   major release of PostgreSQL, including snapshot and beta releases.
   
  
 
 
     
      If you are using a version-specific installation directory, e.g.
-     /opt/PostgreSQL/9.1, you do not need to move the old cluster. The
+     /opt/PostgreSQL/&majorversion;, you do not need to move the old cluster. The
      graphical installers all use version-specific installation directories.
     
 
@@ -298,15 +298,15 @@ make prefix=/usr/local/pgsql.new install
      Make sure both database servers are stopped using, on Unix, e.g.:
 
 
-pg_ctl -D /opt/PostgreSQL/8.4 stop
-pg_ctl -D /opt/PostgreSQL/9.0 stop
+pg_ctl -D /opt/PostgreSQL/9.6 stop
+pg_ctl -D /opt/PostgreSQL/&majorversion; stop
 
 
      or on Windows, using the proper service names:
 
 
-NET STOP postgresql-8.4
-NET STOP postgresql-9.0
+NET STOP postgresql-9.6
+NET STOP postgresql-&majorversion;
 
     
 
@@ -366,17 +366,17 @@ NET STOP postgresql-9.0
 
 
 RUNAS /USER:postgres "CMD.EXE"
-SET PATH=%PATH%;C:\Program Files\PostgreSQL\9.0\bin;
+SET PATH=%PATH%;C:\Program Files\PostgreSQL\&majorversion;\bin;
 
 
      and then run pg_upgrade with quoted directories, e.g.:
 
 
 pg_upgrade.exe
-        --old-datadir "C:/Program Files/PostgreSQL/8.4/data"
-        --new-datadir "C:/Program Files/PostgreSQL/9.0/data"
-        --old-bindir "C:/Program Files/PostgreSQL/8.4/bin"
-        --new-bindir "C:/Program Files/PostgreSQL/9.0/bin"
+        --old-datadir "C:/Program Files/PostgreSQL/9.6/data"
+        --new-datadir "C:/Program Files/PostgreSQL/&majorversion;/data"
+        --old-bindir "C:/Program Files/PostgreSQL/9.6/bin"
+        --new-bindir "C:/Program Files/PostgreSQL/&majorversion;/bin"
 
 
      Once started, pg_upgrade will verify the two clusters are compatible