Re: [PATCHES] log_statement output for protocol prepare/bind/execute - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] log_statement output for protocol prepare/bind/execute
Date
Msg-id 18875.1154731034@sss.pgh.pa.us
Whole thread Raw
List pgsql-hackers
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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: "Constraint exclusion" is not general enough
Next
From: David Fetter
Date:
Subject: Re: 8.2 features status