Re: Printing query durations - Mailing list pgsql-jdbc

From Markus Schaber
Subject Re: Printing query durations
Date
Msg-id 442921B9.30303@logix-tt.com
Whole thread Raw
In response to Re: Printing query durations  (Kevin Dorne <kevin@catalyst.net.nz>)
List pgsql-jdbc
Hi, Kevin,

Kevin Dorne wrote:

> Well, to clarify, we're using PostgreSQL 7.4.7.  I'm not actually sure
> what JDBC version we're using, as I've just encountered a
> (usefully-named) postgresql.jar file, but I'm fairly certain it's an
> 8.1.x.  Is there an easy way to tell?

public class PGversion {
    public static void main(String[] args) {
        System.err.println( org.postgresql.Driver.getVersion());
    }
}

HTH,
Markus


--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

pgsql-jdbc by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Printing query durations
Next
From: Dave Cramer
Date:
Subject: Re: Printing query durations