Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXuz1-00042V-5Y for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Aug 2016 18:45: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 1bXuz0-0002OG-9h for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Aug 2016 18:45:34 +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 1bXuxd-0000kr-2v for pgsql-hackers@postgresql.org; Thu, 11 Aug 2016 18:44:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bXuxZ-0001Ud-Pk for pgsql-hackers@postgresql.org; Thu, 11 Aug 2016 18:44:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u7BIi2DD014770; Thu, 11 Aug 2016 14:44:02 -0400 From: Tom Lane To: Kevin Grittner cc: Andrew Gierth , Alvaro Herrera , Stephen Frost , Peter Eisentraut , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: No longer possible to query catalogs for index capabilities? In-reply-to: References: <20160809155623.GA567087@alvherre.pgsql> <87y445ap58.fsf@news-spur.riddles.org.uk> <87a8gkr8fu.fsf@news-spur.riddles.org.uk> <17563.1470843700@sss.pgh.pa.us> <8737mcr3vn.fsf@news-spur.riddles.org.uk> <30414.1470867274@sss.pgh.pa.us> Comments: In-reply-to Kevin Grittner message dated "Thu, 11 Aug 2016 12:46:34 -0500" Date: Thu, 11 Aug 2016 14:44:02 -0400 Message-ID: <14769.1470941042@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) 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 Grittner writes: > On Wed, Aug 10, 2016 at 5:14 PM, Tom Lane wrote: >> In short, I do not see a good reason to expose ampredlocks at the SQL >> level, and I think there needs to be a darn good reason to expose any of >> this stuff, not just "maybe some DBA will think he needs to query this". > As I said before, there's probably not a lot of benefit exposing it > *now*, when only btree indexes support fine-grained predicate > locks; but if we were to add support for one or two more AMs per > release for the next several releases, it could become a > significant benefit to a DBA who's trying to figure out a problem > -- especially if that DBA is not a skilled C programmer. By then, we might have a better idea of whether a per-AM boolean flag is a sensible long-term representation or not. Right now, I say that this does little except lock us into something we may well wish to get out of. Also, I'm very skeptical of the implied position that pg_am properties should explain everything a DBA needs to know about the different AMs. That's never been even remotely true, and if that's the sort of standard we wish to strive for, an API that can return a few boolean properties ain't gonna cut it. I think we should limit our ambitions here to exposing properties that *applications* demonstrably have uses for. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers