Extraneous newlines in logfile from vacuumdb

Поиск
Список
Период
Сортировка
От Tim Landscheidt
Тема Extraneous newlines in logfile from vacuumdb
Дата
Msg-id m33a54927g.fsf@passepartout.tim-landscheidt.de
обсуждение исходный текст
Ответы Re: Extraneous newlines in logfile from vacuumdb  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

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?

TIA,
Tim
Index: vacuumdb.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/bin/scripts/vacuumdb.c,v
retrieving revision 1.27
diff -u -r1.27 vacuumdb.c
--- vacuumdb.c    16 Oct 2009 10:38:25 -0000    1.27
+++ vacuumdb.c    24 Oct 2009 17:45:02 -0000
@@ -203,7 +203,7 @@
         appendPQExpBuffer(&sql, " ANALYZE");
     if (table)
         appendPQExpBuffer(&sql, " %s", table);
-    appendPQExpBuffer(&sql, ";\n");
+    appendPQExpBuffer(&sql, ";");

     conn = connectDatabase(dbname, host, port, username, prompt_password, progname);
     if (!executeMaintenanceCommand(conn, sql.data, echo))

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Parsing config files in a directory
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Delete cascade with three levels bug ?