X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3218FDB1DC for ; Thu, 10 Nov 2005 15:55:15 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62447-05 for ; Thu, 10 Nov 2005 19:55:10 +0000 (GMT) X-Greylist: delayed 03:02:46.591493 by SQLgrey- Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id CAF2FDB234 for ; Thu, 10 Nov 2005 15:55:09 -0400 (AST) Received: from mail.mnc.ch (62-2-77-205.business.cablecom.ch [62.2.77.205]) by svr2.postgresql.org (Postfix) with ESMTP id 9D94AF0BDB for ; Thu, 10 Nov 2005 16:52:21 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id 34F6DA82C7; Thu, 10 Nov 2005 17:52:16 +0100 (CET) Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.test.lan [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 09928-07; Thu, 10 Nov 2005 17:52:15 +0100 (CET) Received: from localhost.mnc.ch (62-2-77-204.business.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id D881FA82B6; Thu, 10 Nov 2005 17:52:15 +0100 (CET) Received: by localhost.mnc.ch (Postfix, from userid 1000) id 7B88D31EA4B; Thu, 10 Nov 2005 17:52:11 +0100 (CET) To: Rob Kirkbride Cc: pgsql-jdbc@postgresql.org Subject: Re: More Verbose Logging of Statements References: <437334FD.6000509@rkcomputing.co.uk> <43737329.1050606@rkcomputing.co.uk> X-Hashcash: 1:20:051110:rob@rkcomputing.co.uk::RB7v7Cd2SwgwgE7P:0000000000000000000000000000000000000000B7ts X-Hashcash: 1:20:051110:pgsql-jdbc@postgresql.org::vO1qJ3z8RmPWTBAo:0000000000000000000000000000000000003yyd From: Guillaume Cottenceau Date: 10 Nov 2005 17:52:11 +0100 In-Reply-To: <43737329.1050606@rkcomputing.co.uk> Message-ID: <87irv0bg3o.fsf@meuh.mnc.ch> Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at mnc.ch X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.026 required=5 tests=[AWL=0.026] X-Spam-Score: 0.026 X-Spam-Level: X-Archive-Number: 200511/87 X-Sequence-Number: 14185 Rob Kirkbride writes: > OK. Thanks. :-( It's to debug things like where you get constraint > violation on keys but you don't what the key was. I guess I'd have to > try and get the client to do it - hibernate - but this tends to print > $s as well! If it could be of some help - I use PreparedStatement#toString() in my code for such things. It has the problem of not quoting the strings properly but other that that it's cool. Maybe hibernate has some sort of options for doing this? (I don't use it) (yet) -- Guillaume Cottenceau