Re: Do we still need constraint_exclusion?

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Do we still need constraint_exclusion?
Дата
Msg-id 20090107221428.GR26233@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Do we still need constraint_exclusion?  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Do we still need constraint_exclusion?  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Simon,

* Simon Riggs (simon@2ndQuadrant.com) wrote:
> I don't really understand this. Who can set up an inherited table
> structure but can't remember to turn on constraint_exclusion? That is
> the easiest part of the whole process by a long way. Nobody has this
> table design by accident, they've all been told how or read the docs.

I can, very easily.  It happens whenever we stand up a new server, dump
our tables into it, create our UNION ALL views, and then try to query
them.  Sure, we've gotten used to "oh, we need to go check and make sure
constraint_exclusion is on", but it can be annoying, and if we're ever
handing off our table structures/setups to other people we have to
remember to tell them "oh, and don't forget to enable
constraint_exclusion!", etc, etc..
Thanks,
    Stephen

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Latest version of Hot Standby patch
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Proposal: new border setting in psql