Re: %d in log_line_prefix doesn't work for bg/autovacuum workers
От | Andres Freund |
---|---|
Тема | Re: %d in log_line_prefix doesn't work for bg/autovacuum workers |
Дата | |
Msg-id | 20140516180636.GP23662@alap3.anarazel.de обсуждение исходный текст |
Ответ на | Re: %d in log_line_prefix doesn't work for bg/autovacuum workers (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: %d in log_line_prefix doesn't work for bg/autovacuum workers
|
Список | pgsql-hackers |
On 2014-05-16 14:02:44 -0400, Tom Lane wrote: > Andres Freund <andres@2ndquadrant.com> writes: > > elog.c's log_line_prefix() processes %d with: > > case 'd': > > if (MyProcPort) > > { > > const char *dbname = MyProcPort->database_name; > > > if (dbname == NULL || *dbname == '\0') > > dbname = _("[unknown]"); > > if (padding != 0) > > appendStringInfo(buf, "%*s", padding, dbname); > > Not directly related to your gripe, but: where did this "padding" logic > come from, and what prevents it from creating invalidly-encoded output by > means of truncating multibyte characters in the middle? Isn't that syntax just the *minimal* width? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления: