Re: dynamic SQL - possible performance regression in 9.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: dynamic SQL - possible performance regression in 9.2
Дата
Msg-id 14816.1357170013@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: dynamic SQL - possible performance regression in 9.2  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
Jeff Janes <jeff.janes@gmail.com> writes:
> Using a RULE-based partitioning instead with row by row insertion, the
> plancache changes  slowed it down by 300%, and this patch doesn't change
> that.  But that seems to be down to the insertion getting planned
> repeatedly, because it decides the custom plan is cheaper than the generic
> plan.  Whatever savings the custom plan may have are clearly less than the
> cost of doing the planning repeatedly.

That scenario doesn't sound like it has anything to do with the one being
discussed in this thread.  But what do you mean by "rule-based
partitioning" exactly?  A rule per se wouldn't result in a cached plan
at all, let alone one with parameters, which would be necessary to
trigger any use of the custom-cached-plan code path.

Test cases are way more interesting than hand-wavy complaints.
        regards, tom lane



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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: dynamic SQL - possible performance regression in 9.2
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Re: Proposal: Store "timestamptz" of database creation on "pg_database"