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 017F59FB2AB; Fri, 4 Aug 2006 19:37:34 -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 95914-01; Fri, 4 Aug 2006 22:37:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- 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 AFC289FB0D1; Fri, 4 Aug 2006 19:37:25 -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 k74MbE4T018876; Fri, 4 Aug 2006 18:37:14 -0400 (EDT) To: pgsql-hackers@postgresql.org, Bruce Momjian cc: Dave Cramer , Oliver Jowett , Csaba Nagy , Postgres JDBC , PostgreSQL-patches Subject: Re: [PATCHES] log_statement output for protocol prepare/bind/execute In-reply-to: <200608042224.k74MOgA29758@momjian.us> References: <200608042224.k74MOgA29758@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 04 Aug 2006 18:24:42 -0400" Date: Fri, 04 Aug 2006 18:37:14 -0400 Message-ID: <18875.1154731034@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/37 X-Sequence-Number: 15564 Bruce Momjian 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