Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8969c4

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 parent962e0cc commite8969c4

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
constchar*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 newlineto 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)

[8]ページ先頭

©2009-2025 Movatter.jp