X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 5888E9DCA86 for ; Mon, 27 Mar 2006 21:26:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14056-09 for ; Mon, 27 Mar 2006 21:26:59 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 4CE169DC950 for ; Mon, 27 Mar 2006 21:26:54 -0400 (AST) Received: from mail1.catalyst.net.nz (godel.catalyst.net.nz [202.78.240.40]) by svr4.postgresql.org (Postfix) with ESMTP id CFD7B5AF849 for ; Tue, 28 Mar 2006 01:26:58 +0000 (GMT) Received: from leibniz.catalyst.net.nz ([202.78.240.7] helo=[192.168.2.46]) by mail1.catalyst.net.nz with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1FO2yy-00023Y-Ju for pgsql-jdbc@postgresql.org; Tue, 28 Mar 2006 13:26:52 +1200 Message-ID: <442890D9.40905@catalyst.net.nz> Date: Tue, 28 Mar 2006 13:26:49 +1200 From: Kevin Dorne Organization: Catalyst IT Ltd. User-Agent: Thunderbird 1.5 (X11/20060212) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Printing query durations X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDF549D63CB0498790DC4F0E0" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/119 X-Sequence-Number: 14900 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDF549D63CB0498790DC4F0E0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, I am having some trouble getting PostgreSQL to log durations with statements when called through JDBC. They appear just fine with interactive queries using psql, but the duration field does not show up on JDBC queries. Is there some configuration I need to pass to the JDBC driver? Example output from an interactive query: LOG: duration: 109.524 ms statement: SELECT count(*) FROM transaction; Example output from a JDBC query: LOG: statement: SELECT count(*) FROM transaction; Cheers, -k --------------enigDF549D63CB0498790DC4F0E0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEKJDcWPypEt5k4n0RAv/wAKD0Jpw0dPV/zpMYATSY3QRTf013eQCfRRrk LrcwNx9arF99T7kN7hot6sI= =EEQs -----END PGP SIGNATURE----- --------------enigDF549D63CB0498790DC4F0E0--