Обсуждение: 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:
----
REL7_4_STABLE

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

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