Re: pgjdbc-ng - Mailing list pgsql-jdbc

From Heikki Linnakangas
Subject Re: pgjdbc-ng
Date
Msg-id 530CB040.2080801@vmware.com
Whole thread Raw
In response to Re: pgjdbc-ng  (Guillaume Smet <guillaume.smet@gmail.com>)
Responses Re: pgjdbc-ng
List pgsql-jdbc
On 02/25/2014 04:49 PM, Guillaume Smet wrote:
> On Tue, Feb 25, 2014 at 3:20 PM, Guillaume Smet
> <guillaume.smet@gmail.com> wrote:
>> Is PostgreSQL 9.2 a strong requirement or only necessary for advanced
>> features?
>
> Considering I have the following exception at startup:
> [2014-02-25 15:44:27,711] ERROR - ConnectionPool             -  -
> Unable to create initial connections of pool.
> com.impossibl.postgres.jdbc.PGSQLSimpleException: Connection Error:
> relation "pg_catalog.pg_range" does not exist
>      at com.impossibl.postgres.jdbc.ErrorUtils.makeSQLException(ErrorUtils.java:159)
>      at com.impossibl.postgres.jdbc.ConnectionUtil.createConnection(ConnectionUtil.java:181)
> 9.2 looks like a strong requirement.

That should be easy to fix. Looking at PGtype, where the query is coming
from, all you need to do is add another version of the query without the
reference to pg_range. The logic for sending a different version of the
query depending on the server version is already there.

- Heikki


pgsql-jdbc by date:

Previous
From: Guillaume Smet
Date:
Subject: Re: pgjdbc-ng
Next
From: Adib Saikali
Date:
Subject: Re: JDBC Maven Checksum