Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bW30Y-0000w3-T1 for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Aug 2016 14:55:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bW30Y-0004hq-FN for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Aug 2016 14:55:26 +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 1bW2zC-00038b-QK for pgsql-hackers@postgresql.org; Sat, 06 Aug 2016 14:54:02 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bW2zA-0002Zl-6D for pgsql-hackers@postgresql.org; Sat, 06 Aug 2016 14:54:01 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1bW2z5-0001cz-IR; Sat, 06 Aug 2016 10:53:55 -0400 Date: Sat, 6 Aug 2016 10:53:55 -0400 From: Bruce Momjian To: Andrew Gierth Cc: Tom Lane , Stephen Frost , Peter Eisentraut , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: No longer possible to query catalogs for index capabilities? Message-ID: <20160806145355.GG26927@momjian.us> References: <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> <878twadsp6.fsf@news-spur.riddles.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878twadsp6.fsf@news-spur.riddles.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) 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 On Sat, Aug 6, 2016 at 01:00:15PM +0100, Andrew Gierth wrote: > >>>>> "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? I was thinking an array of strings would avoid problems in having to re-scan the output for tokens. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers