Re: Do we still need constraint_exclusion?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Do we still need constraint_exclusion?
Дата
Msg-id 603c8f070901070926l4ff6661fw1011303c93b9a253@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Do we still need constraint_exclusion?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Do we still need constraint_exclusion?  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
> ~ 10% slowdown on trivial queries will get noticed.

Agreed.

> I just thought of a possible compromise though: maybe we could invent an
> intermediate constraint_exclusion setting that makes the checks only for
> inheritance-child tables.  This would avoid the overhead for simple
> queries and still get the benefit for most of the cases where it's
> actually useful.  I'm not sure how hard this'd be to shoehorn into the
> planner, but if it's doable it might satisfy both camps.

+1

...Robert


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Do we still need constraint_exclusion?
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Do we still need constraint_exclusion?