Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSDk9-00043M-0U for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Jul 2016 01:34:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bSDk8-0003V8-JI for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Jul 2016 01:34:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bSDk7-0003RX-5g for pgsql-hackers@postgresql.org; Wed, 27 Jul 2016 01:34:39 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bSDk4-0006k5-Dp for pgsql-hackers@postgresql.org; Wed, 27 Jul 2016 01:34:38 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 651762029C; Tue, 26 Jul 2016 21:34:35 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 26 Jul 2016 21:34:35 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=faE4/uPNcyx36Y7 MFf+mbQAm1OM=; b=hyfD2x55c4NRsIgCv0UJslQnzEJiQSg0tNH1/ZVirb33h3H DB7zC4BvL01XYfazJqxz1FmFZ8UCci4jdDmrfr6aRFrgBE2uR1FXGtaX9kGt2fll 3UrzGrDLgDb90KQejz1d+oit0PwfzvO6A+rJeRvOL8ezS6Hr/KgdQLZo6bzY= X-Sasl-enc: ttI6j9QmHVc8VBEHgkHlS7hw570hZ6HDGr5l/ruHg86M 1469583275 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 26533F29EE; Tue, 26 Jul 2016 21:34:35 -0400 (EDT) Subject: Re: No longer possible to query catalogs for index capabilities? To: Andrew Gierth , Tom Lane 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> <8737mxo747.fsf@news-spur.riddles.org.uk> Cc: Robert Haas , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4dea49ae-3110-5e97-1548-24ddf8f07c34@2ndquadrant.com> Date: Tue, 26 Jul 2016 21:34:34 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <8737mxo747.fsf@news-spur.riddles.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 7/25/16 3:26 PM, Andrew Gierth wrote: > 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. Maybe we should provide a facility to decode those bits then? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers