Thread: Re: [PATCHES] log_statement output for protocol prepare/bind/execute

Re: [PATCHES] log_statement output for protocol prepare/bind/execute

From
Tom Lane
Date:
Bruce Momjian <bruce@momjian.us> writes:
> I modified the code to store the user statement name in the portal for
> protocol execute, so I can print the user name at that time.

Please forget that and print the portal name.  I'm getting tired of
repeating it, but: there are two different names here and they are
both important.  The bind message should print both names.

> Here is
> the new output:

>     LOG:  statement protocol prepare sel1:  SELECT 1;
>     LOG:  statement protocol bind sel1:  SELECT 1;
>     LOG:  statement protocol execute sel1:  SELECT 1;

If we could lose the noise words "statement protocol" we'd be getting
somewhere ...

            regards, tom lane