Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2YDh-0004Go-Tp for pgsql-jdbc@arkaria.postgresql.org; Tue, 17 May 2016 06:11:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b2YDh-0001ys-Fc for pgsql-jdbc@arkaria.postgresql.org; Tue, 17 May 2016 06:11:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b2YDg-0001yW-Uh for pgsql-jdbc@postgresql.org; Tue, 17 May 2016 06:11:04 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b2YDc-0006fT-Le for pgsql-jdbc@postgresql.org; Tue, 17 May 2016 06:11:04 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b2YDa-0003je-Ge for pgsql-jdbc@postgresql.org; Tue, 17 May 2016 08:10:58 +0200 Received: from 185.40.248.10 ([185.40.248.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2016 08:10:58 +0200 Received: from spam_eater by 185.40.248.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2016 08:10:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: JDBC driver and Postgres 9.6beta Date: Tue, 17 May 2016 08:10:53 +0200 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 185.40.248.10 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: -1.2 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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