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 15:34:16 -0400
Message-ID: <16604.1470944056@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoYfqC-d8KncWWo4YjUZ82tsye3TEYaZHNF+jmsGNEAVWg@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>
<12903.1470929724@sss.pgh.pa.us>
<CA+TgmoYfqC-d8KncWWo4YjUZ82tsye3TEYaZHNF+jmsGNEAVWg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Aug 11, 2016 at 11:35 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Well, if it's unqueryable they won't be able to query it no matter how
>> hard they try ;-).
> Sure, but as this thread already demonstrates, they may also complain
> forcefully about having lost that capability. You argued when
> removing the pg_am columns that nobody cared about the ability to
> query any of them;
Sir, that's just historical revisionism. I/we asked at the time whether
people needed any of that info, and heard nothing but crickets. It was
mentioned multiple times during the development thread, see for example
https://www.postgresql.org/message-id/17342.1439225415%40sss.pgh.pa.us
or
https://www.postgresql.org/message-id/19218.1440604259%40sss.pgh.pa.us
or even the commit message in question (65c5fcd35):
A disadvantage is that SQL-level code can no longer see attributes
of index AMs; in particular, some of the crosschecks in the opr_sanity
regression test are no longer possible from SQL. We've addressed that
by adding a facility for the index AM to perform such checks instead.
(Much more could be done in that line, but for now we're content if the
amvalidate functions more or less replace what opr_sanity used to do.)
We might also want to expose some sort of reporting functionality, but
this patch doesn't do that.
I will admit that I'd rather minimize than maximize the amount of
information we expose here, but I think that's an entirely defensible
position.
> ... You argue against
> these things on the grounds that they might change later, but the
> overwhelming evidence from posts on this list is that people would
> prefer to have access to APIs that might not be stable rather than
> have no access at all.
That doesn't stop them from bitching when we do change things they
were depending on. I'm fine with exposing things there is a clear
use-case for, but I do not see that there is a reasonable use-case
for exposing ampredlocks.
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: <16604.1470944056@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> <CA+TgmoYfqC-d8KncWWo4YjUZ82tsye3TEYaZHNF+jmsGNEAVWg@mail.gmail.com> <16604.1470944056@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