pgsql: Skip eval_const_expressions when the query is such that the - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Skip eval_const_expressions when the query is such that the
Date
Msg-id 20050530010445.26CB1528B7@svr1.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Avoid unnecessary fetch from pg_shadow in the normal case in
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Change the UNKNOWN type to have an internal representation