From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Kevin Grittner <kgrittn@gmail.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: No longer possible to query catalogs for index capabilities?
Date: Thu, 11 Aug 2016 11:35:24 -0400
Message-ID: <12903.1470929724@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobiD8a=5gxdVwj7+7PLumALc8VhrmQb12qmrKhiHa7SKA@mail.gmail.com>
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>
<CACjxUsM0xQ2A7dtH3jAp2sD1qYWvTPPAJLfNF3kYQ9i-bznF0w@mail.gmail.com>
<30414.1470867274@sss.pgh.pa.us>
<CA+TgmobiD8a=5gxdVwj7+7PLumALc8VhrmQb12qmrKhiHa7SKA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Aug 10, 2016 at 6:14 PM, Tom Lane <tgl@sss.pgh.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, kgrittn@gmail.com, andrew@tao11.riddles.org.uk, alvherre@2ndquadrant.com, sfrost@snowman.net, peter.eisentraut@2ndquadrant.com
Subject: Re: No longer possible to query catalogs for index capabilities?
In-Reply-To: <12903.1470929724@sss.pgh.pa.us>
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> <CACjxUsM0xQ2A7dtH3jAp2sD1qYWvTPPAJLfNF3kYQ9i-bznF0w@mail.gmail.com> <30414.1470867274@sss.pgh.pa.us> <CA+TgmobiD8a=5gxdVwj7+7PLumALc8VhrmQb12qmrKhiHa7SKA@mail.gmail.com> <12903.1470929724@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox