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

Commit 16b5e08

Browse files
committed
Use "upgrade" in preference over "migrate" in pg_upgrade messages and
documentation. (Many were left over from the old pg_migrator naming.)
1 parent 34c70c7 commit 16b5e08

File tree

10 files changed

+43
-44
lines changed

10 files changed

+43
-44
lines changed

contrib/pg_upgrade/check.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ issue_warnings(char *sequence_script_file_name)
184184
void
185185
output_completion_banner(char *deletion_script_file_name)
186186
{
187-
/* Did we migrate the free space files? */
187+
/* Did we copy the free space files? */
188188
if (GET_MAJOR_VERSION(old_cluster.major_version) >= 804)
189189
pg_log(PG_REPORT,
190190
"| Optimizer statistics is not transferred by pg_upgrade\n"
@@ -213,7 +213,7 @@ check_cluster_versions(void)
213213
old_cluster.major_version = get_major_server_version(&old_cluster.major_version_str, CLUSTER_OLD);
214214
new_cluster.major_version = get_major_server_version(&new_cluster.major_version_str, CLUSTER_NEW);
215215

216-
/* We allow migration from/to the same major version for beta upgrades */
216+
/* We allow upgrades from/to the same major version for alpha/beta upgrades */
217217

218218
if (GET_MAJOR_VERSION(old_cluster.major_version) < 803)
219219
pg_log(PG_FATAL, "This utility can only upgrade from PostgreSQL version 8.3 and later.\n");
@@ -529,9 +529,9 @@ check_for_isn_and_int8_passing_mismatch(Cluster whichCluster)
529529
"| which rely on the bigint data type. Your old and\n"
530530
"| new clusters pass bigint values differently so this\n"
531531
"| cluster cannot currently be upgraded. You can\n"
532-
"| manually migrate data that use \"/contrib/isn\"\n"
532+
"| manually upgrade data that use \"/contrib/isn\"\n"
533533
"| facilities and remove \"/contrib/isn\" from the\n"
534-
"| old cluster and restart the migration. A list\n"
534+
"| old cluster and restart the upgrade. A list\n"
535535
"| of the problem functions is in the file:\n"
536536
"| \t%s\n\n", output_path);
537537
}
@@ -631,7 +631,7 @@ check_for_reg_data_type_usage(Cluster whichCluster)
631631
"| user tables. These data types reference system oids that\n"
632632
"| are not preserved by pg_upgrade, so this cluster cannot\n"
633633
"| currently be upgraded. You can remove the problem tables\n"
634-
"| and restart the migration. A list of the problem columns\n"
634+
"| and restart the upgrade. A list of the problem columns\n"
635635
"| is in the file:\n"
636636
"| \t%s\n\n", output_path);
637637
}

contrib/pg_upgrade/controldata.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void putenv2(const char *var, const char *val);
2626
* and then pipe its output. With little string parsing we get the
2727
* pg_control data. pg_resetxlog cannot be run while the server is running
2828
* so we use pg_controldata; pg_controldata doesn't provide all the fields
29-
* we need to actually perform the migration, but it provides enough for
29+
* we need to actually perform the upgrade, but it provides enough for
3030
* check mode. We do not implement pg_resetxlog -n because it is hard to
3131
* return valid xid data for a running server.
3232
*/
@@ -505,8 +505,8 @@ check_control_data(ControlData *oldctrl,
505505
"\nOld and new pg_controldata date/time storage types do not match.\n");
506506

507507
/*
508-
* This is a common 8.3 -> 8.4 migration problem, so we are more
509-
* verboase
508+
* This is a common 8.3 -> 8.4 upgrade problem, so we are more
509+
* verbose
510510
*/
511511
pg_log(PG_FATAL,
512512
"You will need to rebuild the new server with configure\n"

contrib/pg_upgrade/info.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ get_rel_infos(const DbInfo *dbinfo, RelInfoArr *relarr, Cluster whichCluster)
313313

314314
/*
315315
* pg_largeobject contains user data that does not appear the pg_dumpall
316-
* --schema-only output, so we have to migrate that system table heap and
316+
* --schema-only output, so we have to upgrade that system table heap and
317317
* index. Ideally we could just get the relfilenode from template1 but
318318
* pg_largeobject_loid_pn_index's relfilenode can change if the table was
319-
* reindexed so we get the relfilenode for each database and migrate it as
319+
* reindexed so we get the relfilenode for each database and upgrade it as
320320
* a normal user table.
321321
* Order by tablespace so we can cache the directory contents efficiently.
322322
*/

contrib/pg_upgrade/option.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ UserOpts user_opts;
2929
/*
3030
* parseCommandLine()
3131
*
32-
* Parses the command line (argc, argv[]) into the given migratorContext object
33-
* and initializes the rest of the object.
32+
* Parses the command line (argc, argv[]) and loads structures
3433
*/
3534
void
3635
parseCommandLine(int argc, char *argv[])

contrib/pg_upgrade/pg_upgrade.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ main(int argc, char **argv)
5151
check_new_cluster();
5252
report_clusters_compatible();
5353

54-
pg_log(PG_REPORT, "\nPerforming Migration\n");
55-
pg_log(PG_REPORT, "--------------------\n");
54+
pg_log(PG_REPORT, "\nPerforming Upgrade\n");
55+
pg_log(PG_REPORT, "------------------\n");
5656

5757
disable_old_cluster();
5858
prepare_new_cluster();

contrib/pg_upgrade/relfilenode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ transfer_relfile(pageCnvCtx *pageConverter, const char *oldfile,
231231
const char *msg;
232232

233233
if ((user_opts.transfer_mode == TRANSFER_MODE_LINK) && (pageConverter != NULL))
234-
pg_log(PG_FATAL, "this migration requires page-by-page conversion, "
234+
pg_log(PG_FATAL, "this upgrade requires page-by-page conversion, "
235235
"you must use copy-mode instead of link-mode\n");
236236

237237
if (user_opts.transfer_mode == TRANSFER_MODE_COPY)

contrib/pg_upgrade/tablespace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ init_tablespaces(void)
2525
if (os_info.num_tablespaces > 0 &&
2626
strcmp(old_cluster.tablespace_suffix, new_cluster.tablespace_suffix) == 0)
2727
pg_log(PG_FATAL,
28-
"Cannot migrate to/from the same system catalog version when\n"
28+
"Cannot upgrade to/from the same system catalog version when\n"
2929
"using tablespaces.\n");
3030
}
3131

contrib/pg_upgrade/version.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ new_9_0_populate_pg_largeobject_metadata(bool check_mode,
7373
pg_log(PG_WARNING, "\n"
7474
"| Your installation contains large objects.\n"
7575
"| The new database has an additional large object\n"
76-
"| permission table. After migration, you will be\n"
76+
"| permission table. After upgrading, you will be\n"
7777
"| given a command to populate the pg_largeobject\n"
7878
"| permission table with default permissions.\n\n");
7979
else

contrib/pg_upgrade/version_old_8_3.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ old_8_3_check_for_name_data_type_usage(Cluster whichCluster)
9797
"| user tables. This data type changed its internal\n"
9898
"| alignment between your old and new clusters so this\n"
9999
"| cluster cannot currently be upgraded. You can\n"
100-
"| remove the problem tables and restart the migration.\n"
100+
"| remove the problem tables and restart the upgrade.\n"
101101
"| A list of the problem columns is in the file:\n"
102102
"| \t%s\n\n", output_path);
103103
}
@@ -110,7 +110,7 @@ old_8_3_check_for_name_data_type_usage(Cluster whichCluster)
110110
* old_8_3_check_for_tsquery_usage()
111111
* 8.3 -> 8.4
112112
* A new 'prefix' field was added to the 'tsquery' data type in 8.4
113-
* so migration of such fields is impossible.
113+
* so upgrading of such fields is impossible.
114114
*/
115115
void
116116
old_8_3_check_for_tsquery_usage(Cluster whichCluster)
@@ -186,7 +186,7 @@ old_8_3_check_for_tsquery_usage(Cluster whichCluster)
186186
"| This data type added a new internal field between\n"
187187
"| your old and new clusters so this cluster cannot\n"
188188
"| currently be upgraded. You can remove the problem\n"
189-
"| columns and restart the migration. A list of the\n"
189+
"| columns and restart the upgrade. A list of the\n"
190190
"| problem columns is in the file:\n"
191191
"| \t%s\n\n", output_path);
192192
}
@@ -328,7 +328,7 @@ old_8_3_rebuild_tsvector_tables(bool check_mode,
328328
"| Your installation contains tsvector columns.\n"
329329
"| The tsvector internal storage format changed\n"
330330
"| between your old and new clusters so the tables\n"
331-
"| must be rebuilt. After migration, you will be\n"
331+
"| must be rebuilt. After upgrading, you will be\n"
332332
"| given instructions.\n\n");
333333
else
334334
pg_log(PG_WARNING, "\n"
@@ -441,7 +441,7 @@ old_8_3_invalidate_hash_gin_indexes(bool check_mode,
441441
"| indexes. These indexes have different\n"
442442
"| internal formats between your old and new\n"
443443
"| clusters so they must be reindexed with the\n"
444-
"| REINDEX command. After migration, you will\n"
444+
"| REINDEX command. After upgrading, you will\n"
445445
"| be given REINDEX instructions.\n\n");
446446
else
447447
pg_log(PG_WARNING, "\n"
@@ -571,7 +571,7 @@ old_8_3_invalidate_bpchar_pattern_ops_indexes(bool check_mode,
571571
"| \"bpchar_pattern_ops\". These indexes have\n"
572572
"| different internal formats between your old and\n"
573573
"| new clusters so they must be reindexed with the\n"
574-
"| REINDEX command. After migration, you will be\n"
574+
"| REINDEX command. After upgrading, you will be\n"
575575
"| given REINDEX instructions.\n\n");
576576
else
577577
pg_log(PG_WARNING, "\n"

doc/src/sgml/pgupgrade.sgml

+21-21
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<para>
1111
<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</>
1313
major version without the data dump/reload typically required for
1414
major version upgrades, e.g. from 8.4.7 to the current major release
1515
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
227227
Install any custom shared object files (or DLLs) used by the old cluster
228228
into the new cluster, e.g. <filename>pgcrypto.so</filename>, whether they are from <filename>contrib</filename>
229229
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.
231231
</para>
232232
</step>
233233

@@ -277,7 +277,7 @@ NET STOP pgsql-8.3 (<productname>PostgreSQL</> 8.3 and older used a different s
277277
<application>pg_upgrade</> requires the specification of the old and new cluster's
278278
data and executable (<filename>bin</>) directories. You can also specify separate
279279
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
281281
faster (no data copying), but you will no longer be able to access your
282282
old cluster once you start the new cluster after the upgrade. See
283283
<literal>pg_upgrade --help</> for a full list of options.
@@ -303,15 +303,15 @@ pg_upgrade.exe
303303
</programlisting>
304304

305305
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</>
307307
to perform only the checks, even if the old server is still
308308
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.
310310
<command>pg_upgrade</> requires write permission in the current directory.
311311
</para>
312312

313313
<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.
315315
</para>
316316

317317
<para>
@@ -320,7 +320,7 @@ pg_upgrade.exe
320320
below. To try <command>pg_upgrade</command> again, you will need to modify the old
321321
cluster so the pg_upgrade schema restore succeeds. If the problem is a
322322
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,
324324
assuming the module is not being used to store user data.
325325
</para>
326326
</step>
@@ -335,13 +335,13 @@ pg_upgrade.exe
335335
</step>
336336

337337
<step>
338-
<title>Post-migration processing</title>
338+
<title>Post-Upgrade processing</title>
339339

340340
<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
342342
warnings as it completes. It will also generate script files that must
343343
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
345345
run using:
346346

347347
<programlisting>
@@ -368,7 +368,7 @@ psql --username postgres --file script.sql postgres
368368
<para>
369369
Because optimizer statistics are not transferred by <command>pg_upgrade</>, you will
370370
be instructed to run a command to regenerate that information at the end
371-
of the migration.
371+
of the upgrade.
372372
</para>
373373
</step>
374374

@@ -419,9 +419,9 @@ psql --username postgres --file script.sql postgres
419419
to <filename>$PGDATA/global/pg_control</> and perhaps
420420
tablespace directories. To reuse the old cluster, remove
421421
the <filename>.old</> suffix
422-
from <filename>$PGDATA/global/pg_control</>. and, if migrating
422+
from <filename>$PGDATA/global/pg_control</>. and, if upgrading
423423
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
425425
the tablespace directory names; then you can restart the old
426426
cluster.
427427
</para>
@@ -434,12 +434,12 @@ psql --username postgres --file script.sql postgres
434434
</sect2>
435435

436436
<sect2>
437-
<title>Limitations in Migrating <emphasis>from</> PostgreSQL 8.3</title>
437+
<title>Limitations in Upgrading <emphasis>from</> PostgreSQL 8.3</title>
438438

439439
<para>
440440
Upgrading from PostgreSQL 8.3 has additional restrictions not present
441441
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
443443
is defined as:
444444
<itemizedlist>
445445
<listitem>
@@ -456,7 +456,7 @@ psql --username postgres --file script.sql postgres
456456
</para>
457457

458458
<para>
459-
You must drop any such columns and migrate them manually.
459+
You must drop any such columns and upgrade them manually.
460460
</para>
461461

462462
<para>
@@ -507,29 +507,29 @@ psql --username postgres --file script.sql postgres
507507
<title>Notes</title>
508508

509509
<para>
510-
<application>pg_upgrade</> does not support migration of databases
510+
<application>pg_upgrade</> does not support upgrading of databases
511511
containing these <type>reg*</> OID-referencing system data types:
512512
<type>regproc</>, <type>regprocedure</>, <type>regoper</>,
513513
<type>regoperator</>, <type>regclass</>, <type>regconfig</>, and
514-
<type>regdictionary</>. (<type>regtype</> can be migrated.)
514+
<type>regdictionary</>. (<type>regtype</> can be upgraded.)
515515
</para>
516516

517517
<para>
518518
All failure, rebuild, and reindex cases will be reported by
519519
<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
521521
generated automatically.
522522
</para>
523523

524524
<para>
525525
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.
527527
</para>
528528

529529
<para>
530530
If you want to use link mode and you don't want your old cluster
531531
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
533533
of the old cluster, use <command>rsync</> to create a dirty
534534
copy of the old cluster while the server is running, then shut down
535535
the old server and run <command>rsync</> again to update the copy with any

0 commit comments

Comments
 (0)