Re: Logging functions executed by queries in 8.2? - Mailing list pgsql-hackers

From
Subject Re: Logging functions executed by queries in 8.2?
Date
Msg-id 1170803568.8495.189.camel@sakai.localdomain
Whole thread Raw
In response to Re: Logging functions executed by queries in 8.2?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Logging functions executed by queries in 8.2?
List pgsql-hackers
<blockquote type="CITE"><pre>
<font color="#000000">Josh Berkus <<a href="mailto:josh@agliodbs.com">josh@agliodbs.com</a>> writes:</font>
<font color="#000000">> In recent versions, we've changed the logging of function executions so </font>
<font color="#000000">> that only the function call is logged, and not any of the queries which it </font>
<font color="#000000">> may execute internally.  While most of the time this method is superior </font>
<font color="#000000">> for performance analysis, in applications with extensive multi-line stored </font>
<font color="#000000">> procedures sometimes you want to log each individual query.</font>

<font color="#000000">ISTM that the wave of the future for this is an instrumentation plug-in,</font>
<font color="#000000">not further kluging of the query logging functionality.  I had the</font>
<font color="#000000">impression that Korry and EDB had some prototype capability in that</font>
<font color="#000000">direction already, and surely it shouldn't be that hard to write if not.</font>
</pre></blockquote><br /> 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.<br /><br /> If
anyoneis interested, let me know and I'll add this to my ToDo list.  <br /><br />             -- Korry  

pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Proposal: TABLE functions
Next
From: Josh Berkus
Date:
Subject: Re: Logging functions executed by queries in 8.2?