Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRlY6-0000mt-JA for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2016 19:28:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bRlY6-0008Qc-06 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2016 19:28:22 +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 1bRlWj-0006tU-Rw for pgsql-hackers@postgresql.org; Mon, 25 Jul 2016 19:26:57 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bRlWg-0005EY-Ux for pgsql-hackers@postgresql.org; Mon, 25 Jul 2016 19:26:57 +0000 Received: from localhost ([127.0.0.1]:22520 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bRlWf-000GDP-BG; Mon, 25 Jul 2016 19:26:53 +0000 From: Andrew Gierth To: Tom Lane Cc: Robert Haas , "pgsql-hackers\@postgresql.org" Subject: Re: No longer possible to query catalogs for index capabilities? In-Reply-To: <8957.1469474359@sss.pgh.pa.us> (Tom Lane's message of "Mon, 25 Jul 2016 15:19:19 -0400") Message-ID: <8737mxo747.fsf@news-spur.riddles.org.uk> References: <87mvl5on7n.fsf@news-spur.riddles.org.uk> <23668.1469454897@sss.pgh.pa.us> <87invtolnc.fsf@news-spur.riddles.org.uk> <25197.1469457317@sss.pgh.pa.us> <8957.1469474359@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Mon, 25 Jul 2016 20:26:53 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org >>>>> "Tom" == Tom Lane writes: Tom> Andrew still hasn't shown a concrete example of what he needs to Tom> do and why. The issue I ran into was the exact same one as in the JDBC thread I linked to earlier: correctly interpreting pg_index.indoption (to get the ASC / DESC and NULLS FIRST/LAST settings), which requires knowing whether amcanorder is true to determine whether to look at the bits at all. The guy I was helping was using an earlier pg version, so it didn't affect him (yet); I hit it when trying to test the query on 9.6. -- Andrew (irc:RhodiumToad) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers