X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 7EF479FB248 for ; Fri, 4 Aug 2006 16:27:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 05056-03 for ; Fri, 4 Aug 2006 19:27:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9ADE89FB1D2 for ; Fri, 4 Aug 2006 16:27:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k74JRYCc014946; Fri, 4 Aug 2006 15:27:35 -0400 (EDT) To: Bruce Momjian cc: Dave Cramer , Oliver Jowett , Csaba Nagy , Postgres JDBC Subject: Re: PGStatement#setPrepareThreshold In-reply-to: <200608041856.k74IurK20224@momjian.us> References: <200608041856.k74IurK20224@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 04 Aug 2006 14:56:53 -0400" Date: Fri, 04 Aug 2006 15:27:34 -0400 Message-ID: <14945.1154719654@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/31 X-Sequence-Number: 15558 Bruce Momjian writes: > ! (errmsg("statement: [protocol] %s", portal_name))); > --- 1452,1460 ---- > ! (errmsg("statement: %s [PREPARE: %s]", > ! *portal_name ? portal_name : "", > ! 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: DETAIL: statement: LOG: bind: to DETAIL: statement: parameter 1: parameter 2: ... LOG: execute: DETAIL: statement: 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