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 4F9CD9FB34C; Sat, 5 Aug 2006 13:27:39 -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 81325-04; Sat, 5 Aug 2006 16:27:36 +0000 (UTC) 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 1F5359FB349; Sat, 5 Aug 2006 13:27:35 -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 k75GRPWx028968; Sat, 5 Aug 2006 12:27:25 -0400 (EDT) To: Oliver Jowett cc: Bruce Momjian , Dave Cramer , Csaba Nagy , Postgres JDBC , PostgreSQL-patches Subject: Re: [HACKERS] [PATCHES] log_statement output for protocol In-reply-to: <44D44B44.5070106@opencloud.com> References: <200608050523.k755Nto22934@momjian.us> <44D44B44.5070106@opencloud.com> Comments: In-reply-to Oliver Jowett message dated "Sat, 05 Aug 2006 19:39:48 +1200" Date: Sat, 05 Aug 2006 12:27:25 -0400 Message-ID: <28967.1154795245@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/43 X-Sequence-Number: 15570 Oliver Jowett writes: > A 50-parameter query could be .. interesting .. > I realize that you need this level of output to reflect what is > happening at the protocol level, but seeing all the protocol detail is > not really what you expect when you turn on basic statement logging, is it? Well, we've certainly been beat up often enough about the lack of logging bind parameter values --- I don't think there's any question about the importance of printing them. I agree that the proposed format is much too verbose though. In particular, a separate LOG message per parameter is NOT what I had in mind; I want them in DETAIL lines of the bind log message. (This'd perhaps also address Oliver's issue, since if you didn't want to see the values you could turn down log_error_verbosity.) regards, tom lane