Re: logging how to add timestamp

Поиск
Список
Период
Сортировка
От Ray Stell
Тема Re: logging how to add timestamp
Дата
Msg-id 20110601171745.GA3027@cns.vt.edu
обсуждение исходный текст
Ответ на logging how to add timestamp  ("Campbell, Lance" <lance@illinois.edu>)
Список pgsql-admin
On Wed, Jun 01, 2011 at 04:56:12PM +0000, Campbell, Lance wrote:
> Postgresql: 8.4.x
> How do you add a timestamp to the logs.  Currently I see:
>
> ERROR: {some error message}
> STATEMENT: {the sql statement}
>
> Ideally I would like to have the timestamp in front of the statements.
>
> Thanks,
>
> Lance Campbell
> Software Architect/Project Manager/DBA
> Web Services at Public Affairs
> 217.333.0382
> http://illinois.edu/toolbox
>


log_line_prefix

#   %t = timestamp (no milliseconds)
#   %m = timestamp with milliseconds


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

Предыдущее
От: "Campbell, Lance"
Дата:
Сообщение: logging how to add timestamp
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Problem with postgres 8.2.5