Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX8ol-0007OU-4D for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Aug 2016 15:19:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bX8ok-0003LA-9h for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Aug 2016 15:19:46 +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 1bX8nN-0001pW-C4 for pgsql-hackers@postgresql.org; Tue, 09 Aug 2016 15:18:21 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bX8nG-0005gF-5i for pgsql-hackers@postgresql.org; Tue, 09 Aug 2016 15:18:20 +0000 Received: from localhost ([127.0.0.1]:63052 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bX8nC-0008yQ-RG; Tue, 09 Aug 2016 15:18:10 +0000 From: Andrew Gierth To: Kevin Grittner Cc: Alvaro Herrera , Tom Lane , Stephen Frost , Peter Eisentraut , Robert Haas , "pgsql-hackers\@postgresql.org" Subject: Re: No longer possible to query catalogs for index capabilities? In-Reply-To: (Kevin Grittner's message of "Mon, 8 Aug 2016 15:13:15 -0500") Message-ID: <8737meashg.fsf@news-spur.riddles.org.uk> References: <5278.1469628270@sss.pgh.pa.us> <20160808045358.GA877101@alvherre.pgsql> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Tue, 09 Aug 2016 16:18:10 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -2.3 (--) 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 >>>>> "Kevin" == Kevin Grittner writes: >>> Building on the has-property approach Andrew suggested, I wonder if >>> we need something like pg_index_column_has_property(indexoid, colno, >>> propertyname) with properties like "sortable", "desc", "nulls first". >> >> This seems simple enough, on the surface. Why not run with this design? Kevin> Andrew's patch, plus this, covers everything I can think of. Where'd be a good place to put that function? ruleutils? catalog/index.c ? (ruleutils is way too big already) -- 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