From: Craig Ringer <craig@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Setting PG-version without recompiling
Date: Mon, 14 Jul 2014 11:47:10 +0800
Message-ID: <53C352BE.6040807@2ndquadrant.com> (raw)
In-Reply-To: <21060.1404396961@sss.pgh.pa.us>
References: <VisenaEmail.4d.163a4cd26e72b9d3.146fb741d54@tc7-on>
<21060.1404396961@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 07/03/2014 10:16 PM, Tom Lane wrote:
> Andreas Joseph Krogh <andreas@visena.com> writes:
>> Hi. Â I'm up for testing 9.4 but my JDBC-driver fails to connect due to PG's
>> minor-version string: "4beta1". Is it possible to set this somewhere without
>> recompiling PG?
>
> No, and even if you could, that would be the wrong approach. The right
> approach is to fix the JDBC driver to not complain about such version
> strings. I'm a bit surprised they haven't done so long since, considering
> how long PG beta versions have been tagged like that. For that matter,
> they really ought not complain about strings like "9.5devel" or
> "9.5alpha2" either.
Yeah, that's horrible. We should be using server_version_num .
It should be a quick enough fix, I'll take a look.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: craig@2ndquadrant.com, tgl@sss.pgh.pa.us, andreas@visena.com, pgsql-hackers@postgresql.org
Subject: Re: [JDBC] Setting PG-version without recompiling
In-Reply-To: <53C352BE.6040807@2ndquadrant.com>
References: <VisenaEmail.4d.163a4cd26e72b9d3.146fb741d54@tc7-on> <21060.1404396961@sss.pgh.pa.us> <53C352BE.6040807@2ndquadrant.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