Re: MAX/MIN optimization via rewrite (plus query rewrites generally)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MAX/MIN optimization via rewrite (plus query rewrites generally)
Дата
Msg-id 4336.1100153319@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: MAX/MIN optimization via rewrite (plus query rewrites generally)  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы Re: MAX/MIN optimization via rewrite (plus query rewrites generally)  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> What about having a new column in pg_aggregate which would point to a
> function that would try to optimize the aggregate's handling?

I can't get very excited about this, because how would you make a
reasonably stable/narrow API for such a thing?  The function as you
propose it would have to know everything about not only the planner's
data representations but the N specific places it would be called from.

The existing selectivity functions are bad enough on this score ...
        regards, tom lane


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: MAX/MIN optimization via rewrite (plus query rewrites
Следующее
От: "John Hansen"
Дата:
Сообщение: Re: MAX/MIN optimization via rewrite (plus query rewrites generally)