Skip to content

Commit e8969c4

Browse files
committed
In pg_upgrade, use pg_log() instead of prep_status() for
newline-terminated messages, per suggestion from Tom. Backpatch to 9.2.
1 parent 962e0cc commit e8969c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_upgrade/relfilenode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr,
3636
new_dbnum;
3737
const char *msg = NULL;
3838

39-
prep_status("%s user relation files\n",
39+
pg_log(PG_REPORT, "%s user relation files\n",
4040
user_opts.transfer_mode == TRANSFER_MODE_LINK ? "Linking" : "Copying");
4141

4242
/* Scan the old cluster databases and transfer their files */

contrib/pg_upgrade/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pg_log(eLogType type, char *fmt,...)
8181
if (type != PG_VERBOSE || log_opts.verbose)
8282
{
8383
fwrite(message, strlen(message), 1, log_opts.internal);
84-
/* if we are using OVERWRITE_MESSAGE, add newline */
84+
/* if we are using OVERWRITE_MESSAGE, add newline to log file */
8585
if (strchr(message, '\r') != NULL)
8686
fwrite("\n", 1, 1, log_opts.internal);
8787
fflush(log_opts.internal);

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