OSDN Git Service

Delete pg_statistics rows for a relation during heap_destroy_with_catalog.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Nov 1999 02:03:04 +0000 (02:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Nov 1999 02:03:04 +0000 (02:03 +0000)
commitd2914c38b6c0b603c31af13c988cff7dcba5be79
tree0ddfdb6d734610ac51d7b30ceac474620d587255
parent0ffe17aec61a14d27625899c221862651a502ab7
Delete pg_statistics rows for a relation during heap_destroy_with_catalog.
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.
src/backend/catalog/heap.c