Re: Logging queries that are part of a stored procedure

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Michael Nolan" <htfoot(at)gmail(dot)com>
Cc: "PostgreSQL Mailing lists" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Logging queries that are part of a stored procedure
Date: 2006-09-09 02:24:52
Message-ID: b42b73150609081924t68d6fb3bw41bd05a0ff053c33@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/8/06, Michael Nolan <htfoot(at)gmail(dot)com> wrote:
> Setting postgresql 8.1.3 to log all queries only logs direct queries,
> not ones made as part of a stored procedure (function) call.
>
> Is there a way to get it to log queries that are part of functions?

not really, but you can 'raise notice' inside pl/pgsql functions or
(as a last resort) insert records into a log table. in between
statement executions.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message aBBISh 2006-09-09 09:55:34 find a free database design software
Previous Message Michael Nolan 2006-09-09 00:54:23 Logging queries that are part of a stored procedure