Re: surprisingly expensive join planning query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: surprisingly expensive join planning query
Дата
Msg-id 10428.1575318107@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: surprisingly expensive join planning query  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Ответы Re: surprisingly expensive join planning query  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> On Sun, Dec 01, 2019 at 02:17:15PM -0500, Tom Lane wrote:
>> LGTM.

> Thanks. Do you think this is backpatch-worthy? I'm leaning to yes, but
> maybe tweaking this just in master is fine. The query is somewhat
> artificial and there are probably ways to rewrite it.

I don't object to back-patching.

> The thing that annoys me a bit is that this fix is only partial. It gets
> rid of maybe 80% of the allocations, but there's plenty of unnecessary
> stuff left allocated ...

Meh.  I'm not that excited about getting rid of retail space wastage,
unless there are single dominant points such as you found here.  For
small stuff it's far better to worry about memory context management.
(Speaking of which, I don't quite see why this would have been a problem
once you got past geqo_threshold; the context resets that GEQO does
should've kept things under control.)

            regards, tom lane



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Windows buildfarm members vs. new async-notify isolation test
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Using XLogFileNameP in critical section