Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bW0Ih-0003CT-Ge for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Aug 2016 12:01:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bW0If-0002qK-NF for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Aug 2016 12:01:57 +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 1bW0HI-0001L7-7u for pgsql-hackers@postgresql.org; Sat, 06 Aug 2016 12:00:32 +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 1bW0H5-0000sH-Tk for pgsql-hackers@postgresql.org; Sat, 06 Aug 2016 12:00:27 +0000 Received: from localhost ([127.0.0.1]:51581 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bW0H1-000EJL-Ey; Sat, 06 Aug 2016 12:00:15 +0000 From: Andrew Gierth To: Bruce Momjian Cc: 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: <20160802195809.GE32575@momjian.us> (Bruce Momjian's message of "Tue, 2 Aug 2016 15:58:09 -0400") Message-ID: <878twadsp6.fsf@news-spur.riddles.org.uk> References: <25197.1469457317@sss.pgh.pa.us> <8957.1469474359@sss.pgh.pa.us> <8737mxo747.fsf@news-spur.riddles.org.uk> <4dea49ae-3110-5e97-1548-24ddf8f07c34@2ndquadrant.com> <5265.1469584987@sss.pgh.pa.us> <20160727022424.GL4028@tamriel.snowman.net> <5278.1469628270@sss.pgh.pa.us> <20160801140719.GK4028@tamriel.snowman.net> <4456.1470061183@sss.pgh.pa.us> <20160802195809.GE32575@momjian.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Sat, 06 Aug 2016 13:00:15 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -3.1 (---) 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 >>>>> "Bruce" == Bruce Momjian writes: >> As far as I understood Andrew's use case, he was specifically *not* >> interested in a complete representation of an index definition, but >> rather about whether it had certain properties that would be of >> interest to query-constructing applications. Well, I wouldn't limit it to query-constructing applications. I'll give another random example that I thought of. Suppose an administrative GUI (I have no idea if any of the existing GUIs do this) has an option to do CLUSTER on a table; how should it know which indexes to offer the user to cluster on, without access to amclusterable? Bruce> Would it be helpful to output an array of strings representing Bruce> the index definition? Why would that help, if the point is to enable programmatic access to information? Anyway, what I haven't seen in this thread is any implementable counter-proposal other than the "just hardcode the name 'btree'" response that was given in the JDBC thread, which I don't consider acceptable in any sense. Is 9.6 going to go out like this or is action going to be taken before rc1? -- 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