Re: Tracing in Postgres

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Tracing in Postgres
Дата
Msg-id CA+TgmobdG_Nn+ZD9eweL3hhTexB4MeMQPMqTP+tN4xReZO1zNw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Tracing in Postgres  (Harshitha S <hershetha@gmail.com>)
Список pgsql-hackers
On Mon, Jul 25, 2011 at 12:59 AM, Harshitha S <hershetha@gmail.com> wrote:
> I want to retain all the error messages, error report that is used by
> Postgres.
> I don't intend to log any information extra other than what is provided by
> Postgres.
> But I just want to replace the implementation of the logging/tracing in
> Postgres, so that the existing messages can be redirected to a file, a USB
> etc., There is an existing tracing frameworkfor this,I intend to use the API
> s provided by this framework.

I'd suggest that you look at adding the functionality you are
interested in to the logging collector, rather than putting it
directly in elog.c.  That's pretty much exactly what the logging
collector is designed to do, so you'd be extending or adjusting
existing functionality, rather than reinventing the wheel.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: python cleanup
Следующее
От: Robert Haas
Дата:
Сообщение: Re: WIP fix proposal for bug #6123