Re: [JDBC] Setting PG-version without recompiling

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: [JDBC] Setting PG-version without recompiling
Дата
Msg-id 53C352BE.6040807@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Setting PG-version without recompiling  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: better atomics - v0.5
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: tweaking NTUP_PER_BUCKET