Re: Selectivity estimation for intarray

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Selectivity estimation for intarray
Дата
Msg-id 35246.1430321445@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Selectivity estimation for intarray  (Alexander Korotkov <aekorotkov@gmail.com>)
Ответы Re: Selectivity estimation for intarray  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Alexander Korotkov <aekorotkov@gmail.com> writes:
> My proposal is to let ALTER OPERATOR change restrict and join selectivity
> functions of the operator. Also it would be useful to be able to change
> commutator and negator of operator: extension could add commutators and
> negators in further versions. Any thoughts?

I'm pretty dubious about this, because we lack any mechanism for undoing
parser/planner decisions based on operator properties.  And there's quite
a lot of stuff that is based on the assumption that operator properties
will never change.

An example of the pitfalls here is that we can never allow ALTER OPERATOR
RENAME, because for example if you rename '<' to '~<~' that will change
its precedence, and we have no way to fix the parse trees embedded in
stored views to reflect that.

For the specific cases you mention, perhaps it would be all right if we
taught plancache.c to blow away *all* cached plans upon seeing any change
in pg_operator; but that seems like a brute-force solution.
        regards, tom lane



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Additional role attributes && superuser review
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Selectivity estimation for intarray