Re: Function execution costs 'n all that

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Function execution costs 'n all that
Дата
Msg-id 87lkk3qctz.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Function execution costs 'n all that  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: Function execution costs 'n all that  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Tom Lane wrote:
> > Instead, I'm thinking it might be time to re-introduce some notion of
> > function execution cost into the system, and make use of that info to
> > sort WHERE clauses into a reasonable execution order.

I imagine you've thought of this already but just in case, the cost of the
function call has to be combined with the selectivity to get this right. If
you can do an expensive but very selective clause first and save 100 cheap
calls that almost always return true it may still be worthwhile.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: what happens when...?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Enabling autovacuum by default (was Re: Autovacuum improvements)