Re: Huge query stalls at PARSE/BIND stage (1)

Поиск
Список
Период
Сортировка
От Matt
Тема Re: Huge query stalls at PARSE/BIND stage (1)
Дата
Msg-id 1132563660.18269.12.camel@localhost
обсуждение исходный текст
Ответ на Re: Huge query stalls at PARSE/BIND stage (1)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> Thanks for the test case.  The problem turns out to be sloppy coding in
> exprTypmod(): it recurses twice on the first argument of a COALESCE,
> making for exponential growth in the time needed to process a deep nest
> of COALESCE expressions ... which is exactly what your deeply nested
> FULL JOINs produce for the join USING variables.  The patch attached
> fixes it for 8.0.* --- I've committed equivalent fixes as far back as
> 7.4, where the problem originated.
>
> Moral: sometimes an apparently trivial inefficiency isn't so trivial.


Interesting. Thanks Tom. You've saved me an unpleasant workaround.
Glad I could contribute *something*!

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgresql8.1 crushes on some inserts/updates in KOI8 encoding
Следующее
От: "Chris Storah"
Дата:
Сообщение: BUG #2059: PGConnect fails when used in a thread