Re: Get PG version using JDBC? - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: Get PG version using JDBC?
Date
Msg-id gd5mj8$126$1@ger.gmane.org
Whole thread Raw
In response to Get PG version using JDBC?  (David Wall <d.wall@computer.org>)
List pgsql-general
David Wall wrote on 15.10.2008 23:01:
> Is there a way to get the PG version string from JDBC?  I'm using PG 8.3.
>
> Thanks,
> David
>
In a portable manner:

http://java.sun.com/j2se/1.5.0/docs/api/java/sql/DatabaseMetaData.html#getDatabaseProductName()
http://java.sun.com/j2se/1.5.0/docs/api/java/sql/DatabaseMetaData.html#getDatabaseProductVersion()

Althout that will not return the information "compiled by..." as the suggested
"select version()" does

Thomas

pgsql-general by date:

Previous
From: Mark Morgan Lloyd
Date:
Subject: Re: Numbering rows
Next
From: "Chris Henderson"
Date:
Subject: Restoring a database