Re: 27 second plan times

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 27 second plan times
Дата
Msg-id 22785.1177105635@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 27 second plan times  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: 27 second plan times  (Gregory Stark <stark@enterprisedb.com>)
Re: 27 second plan times  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> The SearchCatCache here is the one in get_attavgwidth called to estimate the
> relation width.

Hmm, that information is supposed to be cached ... could you provide the
test case?

> The first thing that comes to mind is that we're doing the
> constraint_exclusion code *after* estimating the width of the relations we're
> going to exclude. If we push the constraint exclusion up a few lines the
> planning time goes down the 1.7s.

... and probably breaks a few things; are you sure there are no needed
side effects of the skipped code?
        regards, tom lane


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

Предыдущее
От: "Nicolas Barbier"
Дата:
Сообщение: Re: Eliminating unnecessary left joins
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: 27 second plan times