Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRgeR-0006LG-0p for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2016 14:14:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bRgeP-000220-N4 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2016 14:14:33 +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 1bRgd3-0000Dh-BB for pgsql-hackers@postgresql.org; Mon, 25 Jul 2016 14:13:09 +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 1bRgcz-0008Cb-Nf for pgsql-hackers@postgresql.org; Mon, 25 Jul 2016 14:13:08 +0000 Received: from localhost ([127.0.0.1]:30057 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bRgcw-000Dzn-Ks; Mon, 25 Jul 2016 14:13:02 +0000 From: Andrew Gierth To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: No longer possible to query catalogs for index capabilities? In-Reply-To: <23668.1469454897@sss.pgh.pa.us> (Tom Lane's message of "Mon, 25 Jul 2016 09:54:57 -0400") Message-ID: <87invtolnc.fsf@news-spur.riddles.org.uk> References: <87mvl5on7n.fsf@news-spur.riddles.org.uk> <23668.1469454897@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Mon, 25 Jul 2016 15:13:02 +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: >> With the gutting of pg_am in 9.6, there seems to be no longer any >> way for a query of the system catalogs to discover any of the index >> capabilities that were formerly columns in pg_am (notably >> amcanorder, amcanorderbyop, amclusterable, amsearcharray, >> amsearchnulls). >> Am I missing something or is this a significant oversight? Tom> It's absolutely not an oversight. We asked when 65c5fcd35 went in Tom> whether there was still any need for that information to be Tom> available at the SQL level, and nobody appeared to care. Perhaps you were asking the wrong people? Tom> We could in theory expose a view to show the data --- but since a Tom> large part of the point of that change was to not need initdb for Tom> AM API changes, and to not be constrained to exactly Tom> SQL-compatible representations within that API, I'm disinclined to Tom> do so without a fairly compelling argument why it's needed. It could easily be exposed as a function interface of the form index_has_capability(oid,name) or indexam_has_capability(oid,name) without any initdb worries. That would surely be better than the present condition of being completely unable to get this information from SQL. -- 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