Thread: pgsql: Tweak set_rel_width() to avoid redundant executions of

pgsql: Tweak set_rel_width() to avoid redundant executions of

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Tweak set_rel_width() to avoid redundant executions of getrelid().
In very large queries this accounts for a noticeable fraction of
planning time.  Per an example from Greg Stark.

Modified Files:
--------------
    pgsql/src/backend/optimizer/path:
        costsize.c (r1.179 -> r1.180)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/costsize.c.diff?r1=1.179&r2=1.180)