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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org, Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, Oliver Jowett <oliver(at)opencloud(dot)com>, Csaba Nagy <nagy(at)ecircle-ag(dot)com>, Postgres JDBC <pgsql-jdbc(at)postgresql(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [PATCHES] log_statement output for protocol prepare/bind/execute
Date: 2006-08-04 22:37:14
Message-ID: 18875.1154731034@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc pgsql-patches

Bruce Momjian <bruce(at)momjian(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2006-08-04 22:44:28 Re: 8.2 features status
Previous Message Bruce Momjian 2006-08-04 22:24:42 log_statement output for protocol prepare/bind/execute

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guillaume Smet 2006-08-04 22:46:58 Re: [PATCHES] log_statement output for protocol prepare/bind/execute
Previous Message Bruce Momjian 2006-08-04 22:28:36 Re: log_statement output for protocol prepare/bind/execute

Browse pgsql-patches by date

  From Date Subject
Next Message Guillaume Smet 2006-08-04 22:46:58 Re: [PATCHES] log_statement output for protocol prepare/bind/execute
Previous Message Bruce Momjian 2006-08-04 22:28:36 Re: log_statement output for protocol prepare/bind/execute