]> granicus.if.org Git - postgresql/commitdiff
Have pg_upgrade output 'link' or 'copy' when reporting its status.
authorBruce Momjian <bruce@momjian.us>
Wed, 15 Feb 2012 19:22:54 +0000 (14:22 -0500)
committerBruce Momjian <bruce@momjian.us>
Wed, 15 Feb 2012 19:23:03 +0000 (14:23 -0500)
Idea from Peter.

contrib/pg_upgrade/relfilenode.c

index 54ee5f0b81813f55d06ad2043147191a72120286..a1e30b1f0ce9124f7f0ead5704177e49d0028076 100644 (file)
@@ -37,7 +37,8 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr,
        int                     old_dbnum, new_dbnum;
        const char *msg = NULL;
 
-       prep_status("Restoring user relation files\n");
+       prep_status("%s user relation files\n",
+               user_opts.transfer_mode == TRANSFER_MODE_LINK ? "Linking" : "Copying");
 
        /* Scan the old cluster databases and transfer their files */
        for (old_dbnum = new_dbnum = 0;