Re: [Compatibilty][PSQL 13][JDBC 9.1-902] Novice tries to know compatibility issues.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Kellerer <shammat(at)gmx(dot)net>
Cc: Pierre Brunel <peter(dot)newatpostgres(at)gmail(dot)com>, pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: [Compatibilty][PSQL 13][JDBC 9.1-902] Novice tries to know compatibility issues.
Date: 2021-10-06 13:46:28
Message-ID: 4138242.1633527988@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Thomas Kellerer <shammat(at)gmx(dot)net> writes:
> Pierre Brunel schrieb am 06.10.2021 um 11:11:
>> All i ask is to know if i switch to PSQL 13 is it possible to stay on 9.1-902 ? And if not why ?

> If you migrate to Postgres 13, you will have to upgrade the JDBC driver as well, as Postgres introduced
> a new authentication protocol that the outdated JDBC driver does not understand.

Well, he's not required to start using SCRAM auth right away. I think
the bigger hazard is that some metadata queries may fail due to catalog
changes. I don't have an old JDBC at hand, but I did quickly try psql 9.1
against a v13 server, and some things fell over:

regression=# \d mytable
ERROR: column c.relhasoids does not exist
LINE 1: ..., c.relhasindex, c.relhasrules, c.relhastriggers, c.relhasoi...
^

Maybe JDBC wouldn't have any problems in your usage, but you couldn't know
that except by testing.

> The better strategy would probably be to update the driver now and use the current driver with
> your Postgres 9.1 installation if you want to test for possible (although unlikely) compatibility
> issues with the driver.

Yeah, if you want a staged approach, updating the client side first might
work better.

regards, tom lane

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2021-10-06 14:16:31 Re: BUG #17216: No Password Provided Error - uncaught exception
Previous Message Dave Cramer 2021-10-06 11:34:20 Re: [Compatibilty][PSQL 13][JDBC 9.1-902] Novice tries to know compatibility issues.