From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: PGStatement#setPrepareThreshold
Date: Fri, 04 Aug 2006 15:27:34 -0400
Message-ID: <14945.1154719654@sss.pgh.pa.us> (raw)
In-Reply-To: <200608041856.k74IurK20224@momjian.us>
References: <200608041856.k74IurK20224@momjian.us>
Bruce Momjian <bruce@momjian.us> writes:
> ! (errmsg("statement: [protocol] <BIND> %s", portal_name)));
> --- 1452,1460 ----
> ! (errmsg("statement: <protocol> <BIND> %s [PREPARE: %s]",
> ! *portal_name ? portal_name : "<unnamed>",
> ! portal->sourceText ? portal->sourceText : "")));
This is getting less readable not more so; and you still haven't got the
prepared statement's name in there, let alone any place to put the
parameter values.
Perhaps we should give up on the idea that this can all fit on one log
line? Maybe
LOG: parse: <statement-name>
DETAIL: statement: <source-text>
LOG: bind: <portal-name> to <statement-name>
DETAIL: statement: <source-text>
parameter 1: <parameter value>
parameter 2: <parameter value>
...
LOG: execute: <portal-name>
DETAIL: statement: <source-text>
The $64 question here is whether we want to repeat the source-text
in all three messages (parse, bind, execute) or try to reduce the
verbosity.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, pg@fastcrypt.com, oliver@opencloud.com, nagy@ecircle-ag.com
Subject: Re: PGStatement#setPrepareThreshold
In-Reply-To: <14945.1154719654@sss.pgh.pa.us>
References: <200608041856.k74IurK20224@momjian.us> <14945.1154719654@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox