Re: Why is this query running slowly?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why is this query running slowly?
Дата
Msg-id 14186.1316127733@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why is this query running slowly?  ("Tomas Vondra" <tv@fuzzy.cz>)
Список pgsql-general
"Tomas Vondra" <tv@fuzzy.cz> writes:
> Could the planner do this reasoning, i.e. see if there's a NOT NULL
> constraint on the column and change the plan accordingly?

Possibly.  I'm not sure how expensive it would be.  Right now, a
structural change of that sort would have to be done pretty early in
planning, and we don't have a lot of info collected about the tables
at that point.  I'm afraid it would involve a special-purpose catalog
probe, which would add a lot of overhead.

            regards, tom lane

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

Предыдущее
От: Richard Broersma
Дата:
Сообщение: Re: forcing table ownership
Следующее
От: Andy Colson
Дата:
Сообщение: Re: forcing table ownership