9
9
10
10
<para>
11
11
<application>pg_upgrade</> (formerly called <application>pg_migrator</>) allows data
12
- stored in <productname>PostgreSQL</> data files to be migrated to a later <productname>PostgreSQL</>
12
+ stored in <productname>PostgreSQL</> data files to be upgraded to a later <productname>PostgreSQL</>
13
13
major version without the data dump/reload typically required for
14
14
major version upgrades, e.g. from 8.4.7 to the current major release
15
15
of <productname>PostgreSQL</>. It is not required for minor version upgrades, e.g. from
@@ -227,7 +227,7 @@ gmake prefix=/usr/local/pgsql.new install
227
227
Install any custom shared object files (or DLLs) used by the old cluster
228
228
into the new cluster, e.g. <filename>pgcrypto.so</filename>, whether they are from <filename>contrib</filename>
229
229
or some other source. Do not install the schema definitions, e.g.
230
- <filename>pgcrypto.sql</>, because these will be migrated from the old cluster.
230
+ <filename>pgcrypto.sql</>, because these will be upgraded from the old cluster.
231
231
</para>
232
232
</step>
233
233
@@ -277,7 +277,7 @@ NET STOP pgsql-8.3 (<productname>PostgreSQL</> 8.3 and older used a different s
277
277
<application>pg_upgrade</> requires the specification of the old and new cluster's
278
278
data and executable (<filename>bin</>) directories. You can also specify separate
279
279
user and port values, and whether you want the data linked instead of
280
- copied (the default). If you use linking, the migration will be much
280
+ copied (the default). If you use linking, the upgrade will be much
281
281
faster (no data copying), but you will no longer be able to access your
282
282
old cluster once you start the new cluster after the upgrade. See
283
283
<literal>pg_upgrade --help</> for a full list of options.
@@ -303,15 +303,15 @@ pg_upgrade.exe
303
303
</programlisting>
304
304
305
305
Once started, <command>pg_upgrade</> will verify the two clusters are compatible
306
- and then do the migration . You can use <command>pg_upgrade --check</>
306
+ and then do the upgrade . You can use <command>pg_upgrade --check</>
307
307
to perform only the checks, even if the old server is still
308
308
running. <command>pg_upgrade --check</> will also outline any
309
- manual adjustments you will need to make after the migration .
309
+ manual adjustments you will need to make after the upgrade .
310
310
<command>pg_upgrade</> requires write permission in the current directory.
311
311
</para>
312
312
313
313
<para>
314
- Obviously, no one should be accessing the clusters during the migration .
314
+ Obviously, no one should be accessing the clusters during the upgrade .
315
315
</para>
316
316
317
317
<para>
@@ -320,7 +320,7 @@ pg_upgrade.exe
320
320
below. To try <command>pg_upgrade</command> again, you will need to modify the old
321
321
cluster so the pg_upgrade schema restore succeeds. If the problem is a
322
322
contrib module, you might need to uninstall the contrib module from
323
- the old cluster and install it in the new cluster after the migration ,
323
+ the old cluster and install it in the new cluster after the upgrade ,
324
324
assuming the module is not being used to store user data.
325
325
</para>
326
326
</step>
@@ -335,13 +335,13 @@ pg_upgrade.exe
335
335
</step>
336
336
337
337
<step>
338
- <title>Post-migration processing</title>
338
+ <title>Post-Upgrade processing</title>
339
339
340
340
<para>
341
- If any post-migration processing is required, pg_upgrade will issue
341
+ If any post-upgrade processing is required, pg_upgrade will issue
342
342
warnings as it completes. It will also generate script files that must
343
343
be run by the administrator. The script files will connect to each
344
- database that needs post-migration processing. Each script should be
344
+ database that needs post-upgrade processing. Each script should be
345
345
run using:
346
346
347
347
<programlisting>
@@ -368,7 +368,7 @@ psql --username postgres --file script.sql postgres
368
368
<para>
369
369
Because optimizer statistics are not transferred by <command>pg_upgrade</>, you will
370
370
be instructed to run a command to regenerate that information at the end
371
- of the migration .
371
+ of the upgrade .
372
372
</para>
373
373
</step>
374
374
@@ -419,9 +419,9 @@ psql --username postgres --file script.sql postgres
419
419
to <filename>$PGDATA/global/pg_control</> and perhaps
420
420
tablespace directories. To reuse the old cluster, remove
421
421
the <filename>.old</> suffix
422
- from <filename>$PGDATA/global/pg_control</>. and, if migrating
422
+ from <filename>$PGDATA/global/pg_control</>. and, if upgrading
423
423
to 8.4 or earlier, remove the tablespace directories created
424
- by the migration and remove the <filename>.old</> suffix from
424
+ by the upgrade and remove the <filename>.old</> suffix from
425
425
the tablespace directory names; then you can restart the old
426
426
cluster.
427
427
</para>
@@ -434,12 +434,12 @@ psql --username postgres --file script.sql postgres
434
434
</sect2>
435
435
436
436
<sect2>
437
- <title>Limitations in Migrating <emphasis>from</> PostgreSQL 8.3</title>
437
+ <title>Limitations in Upgrading <emphasis>from</> PostgreSQL 8.3</title>
438
438
439
439
<para>
440
440
Upgrading from PostgreSQL 8.3 has additional restrictions not present
441
441
when upgrading from later PostgreSQL releases. For example,
442
- pg_upgrade will not work for a migration from 8.3 if a user column
442
+ pg_upgrade will not work for upgrading from 8.3 if a user column
443
443
is defined as:
444
444
<itemizedlist>
445
445
<listitem>
@@ -456,7 +456,7 @@ psql --username postgres --file script.sql postgres
456
456
</para>
457
457
458
458
<para>
459
- You must drop any such columns and migrate them manually.
459
+ You must drop any such columns and upgrade them manually.
460
460
</para>
461
461
462
462
<para>
@@ -507,29 +507,29 @@ psql --username postgres --file script.sql postgres
507
507
<title>Notes</title>
508
508
509
509
<para>
510
- <application>pg_upgrade</> does not support migration of databases
510
+ <application>pg_upgrade</> does not support upgrading of databases
511
511
containing these <type>reg*</> OID-referencing system data types:
512
512
<type>regproc</>, <type>regprocedure</>, <type>regoper</>,
513
513
<type>regoperator</>, <type>regclass</>, <type>regconfig</>, and
514
- <type>regdictionary</>. (<type>regtype</> can be migrated .)
514
+ <type>regdictionary</>. (<type>regtype</> can be upgraded .)
515
515
</para>
516
516
517
517
<para>
518
518
All failure, rebuild, and reindex cases will be reported by
519
519
<application>pg_upgrade</> if they affect your installation;
520
- post-migration scripts to rebuild tables and indexes will be
520
+ post-upgrade scripts to rebuild tables and indexes will be
521
521
generated automatically.
522
522
</para>
523
523
524
524
<para>
525
525
For deployment testing, create a schema-only copy of the old cluster,
526
- insert dummy data, and migrate that.
526
+ insert dummy data, and upgrade that.
527
527
</para>
528
528
529
529
<para>
530
530
If you want to use link mode and you don't want your old cluster
531
531
to be modified when the new cluster is started, make a copy of the
532
- old cluster and migrate that with link mode. To make a valid copy
532
+ old cluster and upgrade that with link mode. To make a valid copy
533
533
of the old cluster, use <command>rsync</> to create a dirty
534
534
copy of the old cluster while the server is running, then shut down
535
535
the old server and run <command>rsync</> again to update the copy with any
0 commit comments