OSDN Git Service

Tweak set_rel_width() to avoid redundant executions of getrelid().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Apr 2007 02:41:13 +0000 (02:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Apr 2007 02:41:13 +0000 (02:41 +0000)
commitca3d14f2a98b49d989090c800835b80087286cb4
treeaab7f9f7f06f0590ff7ba12ada888a9866b2a3fa
parent8073fff8e486178a49b64ef81a15a1e51294d7d0
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.
src/backend/optimizer/path/costsize.c