• Tom Lane's avatar
    Initialize reltuples = 1000, relpages = 10 in a newly created · 0c0151a3
    Tom Lane authored
    relation, rather than zeroes.  This prevents the optimizer from making
    foolish choices (ie, using nested-loop plans) on never-yet-vacuumed tables.
    This is a hack, of course.  Keeping accurate track of these statistics
    would be a cleaner solution, but it's far from clear that it'd be worth
    the cost of doing so.  In any case we're not going to do that for 6.5.
    In the meantime, this quick hack provides a useful performance improvement
    in the regression tests and in many real-world scenarios.
    0c0151a3
heap.c 44.3 KB