pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Ryszard Lach <siaco@autograf.pl>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL 8.0 can't print duration in log when client
Date: Thu, 10 Mar 2005 10:31:32 +1300
Message-ID: <422F6B34.5040207@opencloud.com> (raw)
In-Reply-To: <20050309211522.GA18480@autograf.pl>
References: <20050309211522.GA18480@autograf.pl>

Ryszard Lach wrote:

> I noticed, that PostgreSQL cannot print statement duration when a Java
> client is using JDBC driver (I've tested with JDK1.4.2 and JDBC-2 and
> JDBC-3 postgresql8 drivers). Changing driver to 7.4 (JDBC-3) solves the
> problem. Strange, isn't it?

This is likely to be because the newer driver uses the extended-query 
protocol. Current backends don't handle logging of the extended-query 
protocol very well, I guess that statement duration logging is another 
manifestation of this.

-O



view thread (2+ messages)

Message-ID: <422F6B34.5040207@opencloud.com>
Permalink:  ../422F6B34.5040207@opencloud.com/
Also on:    postgresql.org/message-id/422F6B34.5040207@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, siaco@autograf.pl
  Subject: Re: PostgreSQL 8.0 can't print duration in log when client
  In-Reply-To: <422F6B34.5040207@opencloud.com>
  References: <20050309211522.GA18480@autograf.pl> <422F6B34.5040207@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox