OSDN Git Service

Repair misestimation of indexscan CPU costs. When an indexqual contains
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Jan 2004 20:09:35 +0000 (20:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Jan 2004 20:09:35 +0000 (20:09 +0000)
commitde816a03c4f94b95f4107766b275b3ea4e2ddf80
treeb1f932752f057cf19ffa9313ae35700780f377c4
parent0966516b75f792cfa9fd6a53fc370e06cfca6bee
Repair misestimation of indexscan CPU costs.  When an indexqual contains
a run-time key (that is, a nonconstant expression compared to the index
variable), the key is evaluated just once per scan, but we were charging
costs as though it were evaluated once per visited index entry.
src/backend/utils/adt/selfuncs.c