From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(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: [HACKERS] [PATCHES] log_statement output for protocol |
Date: | 2006-08-05 04:04:43 |
Message-ID: | 200608050404.k7544h019461@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc pgsql-patches |
Tom Lane wrote:
> 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.
OK, I added code to print an optional "/" and the portal name. However,
I can't get libpq to show a portal name. Looking at libpq, does it only
use "" portals, because the only place I see it sending a "B" shows a ""
portal name? How can I test a portal name display?
> > 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 ...
OK, as no one has said they like "statement protocol", the new output is:
LOG: prepare sel1: SELECT 1;
LOG: bind sel1: SELECT 1;
LOG: execute sel1: SELECT 1;
I will take a look at printing out bind text parameters.
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Attachment | Content-Type | Size |
---|---|---|
/pgpatches/prepare | text/x-diff | 7.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew T. O'Connor | 2006-08-05 04:19:54 | Re: 8.2 features status |
Previous Message | Joshua D. Drake | 2006-08-05 03:20:35 | Re: 8.2 features status |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-08-05 05:23:55 | Re: [HACKERS] [PATCHES] log_statement output for protocol |
Previous Message | Guillaume Smet | 2006-08-04 22:46:58 | Re: [PATCHES] log_statement output for protocol prepare/bind/execute |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-08-05 05:23:55 | Re: [HACKERS] [PATCHES] log_statement output for protocol |
Previous Message | Neil Conway | 2006-08-05 00:29:28 | Re: Fix references in pgcrypto doc |