Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXs2R-0002Ti-Ks for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Aug 2016 15:36:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXs2R-0007to-7X for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Aug 2016 15:36:55 +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 1bXs14-0006OS-2R for pgsql-hackers@postgresql.org; Thu, 11 Aug 2016 15:35:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bXs10-0004u4-W3 for pgsql-hackers@postgresql.org; Thu, 11 Aug 2016 15:35:28 +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 u7BFZOA9012905; Thu, 11 Aug 2016 11:35:24 -0400 From: Tom Lane To: Robert Haas cc: Kevin Grittner , Andrew Gierth , Alvaro Herrera , Stephen Frost , Peter Eisentraut , "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 Robert Haas message dated "Wed, 10 Aug 2016 22:50:40 -0400" Date: Thu, 11 Aug 2016 11:35:24 -0400 Message-ID: <12903.1470929724@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 Robert Haas writes: > On Wed, Aug 10, 2016 at 6: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". > I don't think you're being unreasonable, but I don't agree with your > approach. I think that we should expose everything we reasonably can, > and if we have to change it later then it will be a backward > compatibility break. Making it unqueryable in the hopes that people > won't try to query it is futile. Well, if it's unqueryable they won't be able to query it no matter how hard they try ;-). But my point here is that up to now, we never had the opportunity to draw a line between user-visible and non-user-visible AM properties; if it needed to be in pg_am, that's where it went. Now that we do have an opportunity, we should draw the line in an intelligent fashion, not blindly assume that everything that was in pg_am should remain exposed. I think that neither amoptionalkey nor ampredlocks is of real use to applications, and there are easily foreseeable reasons why they would disappear or change behavior substantially. So I feel we should leave them out of the API. 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