Skip site navigation (1) Skip section navigation (2)

Re: Extraneous newlines in logfile from vacuumdb

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim Landscheidt <tim(at)tim-landscheidt(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Extraneous newlines in logfile from vacuumdb
Date: 2009-10-27 21:09:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Tim Landscheidt <tim(at)tim-landscheidt(dot)de> writes:
> log file entries from running vacuumdb are "double-spaced",
> as vacuumdb ends the commands with ";\n" (cf. attached mini-
> patch). Is there a deeper meaning in that, or could it be
> trimmed?

There are a LOT of clients that tend to send queries with trailing
newlines; I'm pretty sure that both pg_dump and psql have instances of
that, for example.  If we were to do something about this, which I'm
entirely unconvinced we should, it'd be better to strip trailing
whitespace from the logged query inside the backend.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Dimitri FontaineDate: 2009-10-27 21:39:33
Subject: Re: Parsing config files in a directory
Previous:From: Tom LaneDate: 2009-10-27 21:05:45
Subject: Re: Endgame for all those SELECT FOR UPDATE changes: fix plan node order

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group