Re: JDBC driver and Postgres 9.6beta

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC driver and Postgres 9.6beta
Date: 2016-05-14 13:57:00
Message-ID: CAB=Je-FUuFi0jUi4BCiTi5WuguJLgek=k2nt6LkZ8GfghVQbwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Thanks for the report,

I've commented out amcanorder for 9.6 here:
https://github.com/pgjdbc/pgjdbc/pull/560

Does anybody know what is the proper way to tell if index column is ASC or
DESC in 9.6+?

pgjdbc used something like
CASE pg_am.amcanorder
WHEN true THEN CASE pg_index.indoption[(pg_index.keys).n - 1] & 1
WHEN 1 THEN 'D'
ELSE 'A'
END
ELSE NULL
END AS ASC_OR_DESC,

Vladimir

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2016-05-14 14:33:45 Re: JDBC driver and Postgres 9.6beta
Previous Message Thomas Kellerer 2016-05-14 11:42:25 JDBC driver and Postgres 9.6beta