From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | oleg(at)sai(dot)msu(dot)su, Denis de Bernardy <ddebernardy(at)yahoo(dot)com>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Re: PG regression with row comparison when btree_gist is enabled (BUG) |
Date: | 2011-07-03 01:21:22 |
Message-ID: | 1309656082.3012.13.camel@jdavis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-testers |
On Sat, 2011-07-02 at 18:38 -0400, Tom Lane wrote:
> Quite honestly, I think that the bug is that btree_gist took it upon
> itself to invent <> as an indexable operator.
Well, it was following documentation that any extension could
potentially use. I think it's a stretch to call it a bug in anything
other than postgres.
So I think we'd need to introduce extra documentation to say that at
most one of an operator and its negator can be indexable; and we should
add a check to prevent that as well.
> The odds that that will
> ever be of practical use seem negligible, and not at all adequate to
> warrant adding extra cycles into mainstream code paths. It's not too
> late to rip that out of 9.1, and that's what I think we should do.
Fair enough. I think it was kind of an interesting use case, and there
might be others like it; but I agree that it wasn't particularly
compelling.
The alternatives don't seem very attractive. To get it to work with one
lookup we'd have to either clutter the btree opclasses with "<>", or
invent a new syscache that has the AM as a key so we can filter out
non-btree opclasses.
I suppose this is another argument for type interfaces.
Regards,
Jeff Davis
From | Date | Subject | |
---|---|---|---|
Next Message | Maxim Boguk | 2011-07-03 01:23:31 | Re: BUG #6088: copy to stdout cannot be stopped with kill(pid) or pg_terminate_backend |
Previous Message | Tom Lane | 2011-07-02 22:38:53 | Re: Re: PG regression with row comparison when btree_gist is enabled (BUG) |
From | Date | Subject | |
---|---|---|---|
Next Message | David Hartveld | 2011-07-04 12:58:44 | Streaming replication on 9.1-beta2 after pg_restore is very slow |
Previous Message | Tom Lane | 2011-07-02 22:38:53 | Re: Re: PG regression with row comparison when btree_gist is enabled (BUG) |