Re: "Constraint exclusion" is not general enough

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "Constraint exclusion" is not general enough
Дата
Msg-id 18043.1154728475@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "Constraint exclusion" is not general enough  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: "Constraint exclusion" is not general enough
Список pgsql-hackers
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> On Fri, Aug 04, 2006 at 02:40:30PM -0400, Tom Lane wrote:
>> I would argue that turning on constraint_exclusion ought to instruct
>> the planner to catch this sort of thing, whereas when it's off we
>> ought not expend the cycles.  I have a preliminary patch (below)
>> that seems to fix it.

> How many cycles are we talking about here? Is it even worth the GUC?

I think so.  On simple queries the optimization will *never* fire,
and there's no point in doing the search.  People who are running
complex queries will want to turn it on, but the mysql-equivalent
crew will just find it a waste of cycles.
        regards, tom lane


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: 8.2 features status
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] log_statement output for protocol prepare/bind/execute