From: | "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com> |
---|---|
To: | "Bruce Momjian" <bruce(at)momjian(dot)us> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Oliver Jowett" <oliver(at)opencloud(dot)com>, "Dave Cramer" <pg(at)fastcrypt(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-30 07:25:34 |
Message-ID: | 1d4e0c10608300025s2880837bi6fe3e7566b14edde@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc pgsql-patches |
On 8/29/06, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> Good point. I thought it was clear enough, but obviously not. I had a
> similar case with bind, and used a comma to separate them:
>
> LOG: statement: prepare sel1, SELECT $1;
> LOG: statement: bind sel1, $1 = 'a''b'
For this one, I must admit I prefer the colon we used before.
Something like:
LOG: statement: prepare sel1: SELECT $1;
LOG: statement: bind sel1: $1 = 'a''b'
seems better to me as after the colon, we have the details of the
command which is the common sense of a colon.
> I am concerned a dash isn't clear enough, and a semicolon is confusing.
> Using a comma the new output is:
>
> LOG: duration: 0.023 ms execute sel1
> DETAIL: prepare: SELECT $1;, bind: $1 = 'a''b'
A dash is clearer in this case IMHO. ;, is not very readable. But I
can parse easily both forms so it's not a problem for me if you prefer
a comma.
> Is that OK? Patch attached and committed. I also fixed the null bind
> parameter bug. It now displays $1 = NULL (no quotes used).
Cool. I'll test that.
> Other suggestions?
I'll compile this new version and make tests in the next few days to
check everything is consistent and let you know.
I'm still struggling to find a regexp good enough to parse "statement:
execute y ('a', 4, 'text, with a comma'::text);" :).
Thanks a lot for your work on this subject. It will help us a lot when
we use the JDBC driver.
--
Guillaume
From | Date | Subject | |
---|---|---|---|
Next Message | Bernd Helmle | 2006-08-30 07:59:01 | Re: Updatable views |
Previous Message | Böszörményi Zoltán | 2006-08-30 05:57:53 | Re: [HACKERS] Performance testing of COPY (SELECT) TO |
From | Date | Subject | |
---|---|---|---|
Next Message | Pantelis Natsiavas | 2006-08-30 08:35:52 | Encoding problem |
Previous Message | Kris Jurka | 2006-08-30 05:27:50 | Re: XA Resources |
From | Date | Subject | |
---|---|---|---|
Next Message | Bernd Helmle | 2006-08-30 07:59:01 | Re: Updatable views |
Previous Message | Böszörményi Zoltán | 2006-08-30 05:57:53 | Re: [HACKERS] Performance testing of COPY (SELECT) TO |