pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSetting PG-version without recompiling
6+ messages / 4 participants
[nested] [flat]
* Setting PG-version without recompiling
@ 2014-07-03 09:02 Andreas Joseph Krogh <andreas@visena.com>
0 siblings, 2 replies; 6+ messages in thread
From: Andreas Joseph Krogh @ 2014-07-03 09:02 UTC (permalink / raw)
To: PostgreSQL Developers <pgsql-hackers@postgresql.org>
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? Thanks. -- Andreas Jospeh Krogh CTO / Partner - Visena AS
Mobile: +47 909 56 963 andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com; <https://www.visena.com;
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Setting PG-version without recompiling
@ 2014-07-03 09:13 Abhijit Menon-Sen <ams@2ndQuadrant.com>
parent: Andreas Joseph Krogh <andreas@visena.com>
1 sibling, 1 reply; 6+ messages in thread
From: Abhijit Menon-Sen @ 2014-07-03 09:13 UTC (permalink / raw)
To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: pgsql-hackers@postgresql.org
At 2014-07-03 11:02:34 +0200, andreas@visena.com wrote:
>
> Is it possible to set this somewhere without
> recompiling PG?
I'm afraid not.
-- Abhijit
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Setting PG-version without recompiling
@ 2014-07-03 09:35 Andreas Joseph Krogh <andreas@visena.com>
parent: Abhijit Menon-Sen <ams@2ndQuadrant.com>
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Joseph Krogh @ 2014-07-03 09:35 UTC (permalink / raw)
To: pgsql-hackers@postgresql.org
På torsdag 03. juli 2014 kl. 11:13:44, skrev Abhijit Menon-Sen <
ams@2ndQuadrant.com <mailto:ams@2ndQuadrant.com>>: At 2014-07-03 11:02:34
+0200, andreas@visena.com wrote:
>
> Is it possible to set this somewhere without
> recompiling PG?
I'm afraid not. Ok -- Andreas Jospeh Krogh CTO / Partner - Visena AS
Mobile: +47 909 56 963 andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com; <https://www.visena.com;
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Setting PG-version without recompiling
@ 2014-07-03 14:16 Tom Lane <tgl@sss.pgh.pa.us>
parent: Andreas Joseph Krogh <andreas@visena.com>
1 sibling, 2 replies; 6+ messages in thread
From: Tom Lane @ 2014-07-03 14:16 UTC (permalink / raw)
To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>; pgsql-jdbc
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.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Setting PG-version without recompiling
@ 2014-07-03 15:54 Andreas Joseph Krogh <andreas@visena.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Joseph Krogh @ 2014-07-03 15:54 UTC (permalink / raw)
To: pgsql-hackers@postgresql.org
På torsdag 03. juli 2014 kl. 16:16:01, skrev Tom Lane <tgl@sss.pgh.pa.us
<mailto:tgl@sss.pgh.pa.us>>: 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.
regards, tom lane I'm using the pgjdbc-ng driver, I'm sure the "official"
driver handles this. The driver will be fixed (the issue has a pull-request), I
just wondered if there was a magic know I could use until the PR is merged. --
Andreas Jospeh Krogh CTO / Partner - Visena AS Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com> www.visena.com
<https://www.visena.com; <https://www.visena.com;
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [JDBC] Setting PG-version without recompiling
@ 2014-07-14 03:47 Craig Ringer <craig@2ndquadrant.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 6+ messages in thread
From: Craig Ringer @ 2014-07-14 03:47 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; Andreas Joseph Krogh <andreas@visena.com>; +Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>; pgsql-jdbc
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
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2014-07-14 03:47 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-07-03 09:02 Setting PG-version without recompiling Andreas Joseph Krogh <andreas@visena.com>
2014-07-03 09:13 ` Abhijit Menon-Sen <ams@2ndQuadrant.com>
2014-07-03 09:35 ` Andreas Joseph Krogh <andreas@visena.com>
2014-07-03 14:16 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-07-03 15:54 ` Andreas Joseph Krogh <andreas@visena.com>
2014-07-14 03:47 ` Craig Ringer <craig@2ndquadrant.com>
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