VACUUM messages without newlines - Mailing list pgsql-hackers

From Thom Brown
Subject VACUUM messages without newlines
Date
Msg-id AANLkTik89BxK-DK84mljp06IUzxehw7fJIyP8bpmRwaL@mail.gmail.com
Whole thread Raw
Responses Re: VACUUM messages without newlines  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
This has annoyed me for some time, but it appears that in the VACUUM
log, the line which says...

INFO: analyzing "%s.%s"

...( and appears in pgsql/src/backend/commands/analyze.c lines 282 and
287  ) doesn't terminate with a newline, meaning the next message
appears immediately after it.  Either the errmsg function should be
doing this, or should be included explicitly in the message itself as
it does with all other messages output to VACUUM logs.

The same goes for...

CPU %d.%02ds/%d.%02du sec elapsed %d.%02d sec

... as appearing in pgsql/src/backend/utils/misc/pg_rusage.c (line 64)

and

"%s": scanned %d of %u pages, containing %.0f live rows and %.0f dead
rows; %d rows in sample, %.0f estimated total rows

... in pgsql/src/backend/commands/analyze.c (line 1220).

Could this be changed, or is there a reason these have to be logged this way?

Thanks

Thom


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: dividing money by money
Next
From: Alvaro Herrera
Date:
Subject: Re: VACUUM messages without newlines