Обсуждение: pgsql: Fix performance issue in exprTypmod(): for a COALESCE expression,

Поиск
Список
Период
Сортировка

pgsql: Fix performance issue in exprTypmod(): for a COALESCE expression,

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Fix performance issue in exprTypmod(): for a COALESCE expression, it
recursed twice on its first argument, leading to exponential time spent
on a deep nest of COALESCEs ... such as a deeply nested FULL JOIN would
produce.  Per report from Matt Carter.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_expr.c (r1.179.4.2 -> r1.179.4.3)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c.diff?r1=1.179.4.2&r2=1.179.4.3)