Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

pgsql: Skip eval_const_expressions when the query is such that the

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: Skip eval_const_expressions when the query is such that the
Дата
Msg-id 20050530010445.26CB1528B7@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Skip eval_const_expressions when the query is such that the expression
would be evaluated only once anyway (ie, it's just a SELECT with no
FROM or an INSERT ... VALUES).  The planner can't do it any faster than
the executor, so no point in an extra copying of the expression tree.

Modified Files:
--------------
    pgsql/src/backend/optimizer/plan:
        planner.c (r1.186 -> r1.187)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/planner.c.diff?r1=1.186&r2=1.187)

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