• Tom Lane's avatar
    Delete pg_statistics rows for a relation during heap_destroy_with_catalog. · d2914c38
    Tom Lane authored
    By dropping stats rows here, we eliminate the need for VACUUM to do a
    wholesale remove of stats rows.  Before, pg_statistics was wiped clean
    at the start of VACUUM, ensuring poor planning results for any backends
    running in parallel until VACUUM got around to rebuilding the stats for
    the relations they are accessing.
    d2914c38
heap.c 59.7 KB