1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

In pg_upgrade, use pg_log() instead of prep_status() for

newline-terminated messages, per suggestion from Tom.

Backpatch to 9.2.
This commit is contained in:
Bruce Momjian
2012-08-03 12:43:37 -04:00
parent 962e0cc71e
commit e8969c4733
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ pg_log(eLogType type, char *fmt,...)
if (type != PG_VERBOSE || log_opts.verbose)
{
fwrite(message, strlen(message), 1, log_opts.internal);
/* if we are using OVERWRITE_MESSAGE, add newline */
/* if we are using OVERWRITE_MESSAGE, add newline to log file */
if (strchr(message, '\r') != NULL)
fwrite("\n", 1, 1, log_opts.internal);
fflush(log_opts.internal);