Re: JDBC driver and Postgres 9.6beta - Mailing list pgsql-jdbc

From Thomas Kellerer
Subject Re: JDBC driver and Postgres 9.6beta
Date
Msg-id nhecld$kvi$1@ger.gmane.org
Whole thread Raw
In response to Re: JDBC driver and Postgres 9.6beta  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Responses Re: JDBC driver and Postgres 9.6beta  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Vladimir Sitnikov schrieb am 14.05.2016 um 15:57:
> 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+?

Based on Tom's statement that only btree indexes can be sorted, the following seems better then just returning NULL:

  CASE am.amname
     WHEN 'btree' THEN
       CASE i.indoption[(i.keys).n - 1] & 1
          WHEN 1 THEN 'D'
          ELSE 'A'
       END
       ELSE NULL
  END AS ASC_OR_DESC,

pgsql-jdbc by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: JDBC driver and Postgres 9.6beta
Next
From: Dave Cramer
Date:
Subject: Re: JDBC driver and Postgres 9.6beta