Re: Logging functions executed by queries in 8.2?

From: <korryd(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <josh(at)agliodbs(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Logging functions executed by queries in 8.2?
Date: 2007-02-06 23:12:48
Message-ID: 1170803568.8495.189.camel@sakai.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Josh Berkus <josh(at)agliodbs(dot)com> writes:
> > In recent versions, we've changed the logging of function executions so
> > that only the function call is logged, and not any of the queries which it
> > may execute internally. While most of the time this method is superior
> > for performance analysis, in applications with extensive multi-line stored
> > procedures sometimes you want to log each individual query.
>
> ISTM that the wave of the future for this is an instrumentation plug-in,
> not further kluging of the query logging functionality. I had the
> impression that Korry and EDB had some prototype capability in that
> direction already, and surely it shouldn't be that hard to write if not.

There's a sort of "proof-of-concept" PL/pgSQL tracer plugin in the
debugger project on pgFoundry - I haven't played with it in a few months
so I can't promise that it will run at the moment.

If anyone is interested, let me know and I'll add this to my ToDo
list.

-- Korry

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2007-02-06 23:12:58 Re: Logging functions executed by queries in 8.2?
Previous Message Pavel Stehule 2007-02-06 22:43:46 Proposal: TABLE functions