Re: query planning different in plpgsql?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query planning different in plpgsql?
Дата
Msg-id 13574.1256580589@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: query planning different in plpgsql?  (Michal J. Kubski <michal.kubski@cdt.pl>)
Ответы Re: query planning different in plpgsql?  (Waldomiro <waldomiro@shx.com.br>)
Re: query planning different in plpgsql?  ("Michal J. Kubski" <michal.kubski@cdt.pl>)
Список pgsql-performance
"Michal J. Kubski" <michal.kubski@cdt.pl> writes:
> [ function that creates a bunch of temporary tables and immediately
> joins them ]

It'd probably be a good idea to insert an ANALYZE on the temp tables
after you fill them.  The way you've got this set up, there is no chance
of auto-analyze correcting that oversight for you, so the planner will
be planning the join "blind" without any stats.  Good results would only
come by pure luck.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Full text search - query plan? PG 8.4.1
Следующее
От: Waldomiro
Дата:
Сообщение: Re: query planning different in plpgsql?