Re: ANALYZE versus expression indexes with nondefault opckeytype

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: ANALYZE versus expression indexes with nondefault opckeytype
Дата
Msg-id 20100801011653.GT21875@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: ANALYZE versus expression indexes with nondefault opckeytype  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: ANALYZE versus expression indexes with nondefault opckeytype  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
* Kevin Grittner (Kevin.Grittner@wicourts.gov) wrote:
> Robert Haas  07/31/10 12:33 PM >>>
> > Tom Lane  wrote:
> >> Failing to store stats isn't a bug?
> >
> > Well, it kind of sounds more like you're removing a known
> > limitation than fixing a bug.
>
> It's operating as designed and documented.  There is room for
> enhancement, but the only thing which could possibly justify this as
> 9.0 material is if there was a demonstrated performance regression in
> 9.0 for which this was the safest cure.

I have to disagree with this, to be honest.  The fact that we've
documented what is completely unexpected and frustrating behaviour
doesn't mean we get to say it's not a bug.  Not collecting stats, at
all, is a pretty bad bug, in my view.  Stats are an important part of
the system which needs to work at least decently.  Perhaps before it was
pretty rare that we'd have the situation described (before we brought in
tsearch2), but it's not any longer and we need to support it as we would
the other types.  The only reason I'm against backpatching it to the
beginning is that it's either an ABI change or some rather grotty code,
and even then it wouldn't be hard to push me to accepting the grotty
code if we make the cleaner change for 9.0 and going forward, especially
as we have people in the wild being affected by it.

Certain other databases have done a very good job of documenting their
bugs and in some cases even calling them features.  I'd rather we not go
down that path.  I don't see the lack of stats collecting to be a simple
'limitation'.
Thanks,
    Stephen

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: review patch: Distinguish between unique indexes and unique constraints
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: More fun with GIN lossy-page pointers