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

Re: Tracing in Postgres

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Harshitha S <hershetha(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Tracing in Postgres
Date: 2011-07-25 15:17:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Mon, Jul 25, 2011 at 12:59 AM, Harshitha S <hershetha(at)gmail(dot)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
The Enterprise PostgreSQL Company

In response to

pgsql-hackers by date

Next:From: Robert HaasDate: 2011-07-25 15:40:09
Subject: Re: WIP fix proposal for bug #6123
Previous:From: Andrew DunstanDate: 2011-07-25 15:09:16
Subject: Re: python cleanup

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