Skip to content

Commit 5eeab9c

Browse files
committed
In pg_upgrade, improve status wording now that we have per-database
status output for dump/restore.
1 parent 113d25c commit 5eeab9c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

contrib/pg_upgrade/dump.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ generate_old_dump(void)
1818
{
1919
int dbnum;
2020

21-
prep_status("Creating catalog dump\n");
22-
23-
pg_log(PG_REPORT, OVERWRITE_MESSAGE, "global objects");
21+
prep_status("Creating dump of global objects");
2422

2523
/* run new pg_dumpall binary for globals */
2624
exec_prog(UTILITY_LOG_FILE, NULL, true,
2725
"\"%s/pg_dumpall\" %s --schema-only --globals-only --binary-upgrade %s -f %s",
2826
new_cluster.bindir, cluster_conn_opts(&old_cluster),
2927
log_opts.verbose ? "--verbose" : "",
3028
GLOBALS_DUMP_FILE);
29+
check_ok();
30+
31+
prep_status("Creating dump of database schemas\n");
3132

3233
/* create per-db dump files */
3334
for (dbnum = 0; dbnum < old_cluster.dbarr.ndbs; dbnum++)

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ prepare_new_databases(void)
248248

249249
set_frozenxids();
250250

251-
prep_status("Creating databases in the new cluster");
251+
prep_status("Restoring global objects in the new cluster");
252252

253253
/*
254254
* Install support functions in the global-object restore database to
@@ -297,7 +297,7 @@ create_new_objects(void)
297297
}
298298
check_ok();
299299

300-
prep_status("Restoring database schema to new cluster\n");
300+
prep_status("Restoring database schemas in the new cluster\n");
301301

302302
for (dbnum = 0; dbnum < old_cluster.dbarr.ndbs; dbnum++)
303303
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy