pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver and Postgres 9.6beta
Date: Tue, 17 May 2016 08:10:53 +0200
Message-ID: <nhecld$kvi$1@ger.gmane.org> (raw)
In-Reply-To: <CAB=Je-FUuFi0jUi4BCiTi5WuguJLgek=k2nt6LkZ8GfghVQbwQ@mail.gmail.com>
References: <nh72v6$582$1@ger.gmane.org>
	<CAB=Je-FUuFi0jUi4BCiTi5WuguJLgek=k2nt6LkZ8GfghVQbwQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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, 



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (7+ messages)  latest in thread

Message-ID: <nhecld$kvi$1@ger.gmane.org>
Permalink:  ../nhecld$kvi$1@ger.gmane.org/
Also on:    postgresql.org/message-id/nhecld$kvi$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: JDBC driver and Postgres 9.6beta
  In-Reply-To: <nhecld$kvi$1@ger.gmane.org>
  References: <nh72v6$582$1@ger.gmane.org> <CAB=Je-FUuFi0jUi4BCiTi5WuguJLgek=k2nt6LkZ8GfghVQbwQ@mail.gmail.com> <nhecld$kvi$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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