]> granicus.if.org Git - postgresql/commit
Add the ability to store inheritance-tree statistics in pg_statistic,
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Dec 2009 20:11:45 +0000 (20:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Dec 2009 20:11:45 +0000 (20:11 +0000)
commit649b5ec7c8a3050a30bd6d36003ba3a681c9a198
treeaf041b646426d71d9ea1113837b5f7a9001082c9
parent84d723b6cefcf25b8c800f8aa6cf3c9538a546b4
Add the ability to store inheritance-tree statistics in pg_statistic,
and teach ANALYZE to compute such stats for tables that have subclasses.
Per my proposal of yesterday.

autovacuum still needs to be taught about running ANALYZE on parent tables
when their subclasses change, but the feature is useful even without that.
18 files changed:
doc/src/sgml/catalogs.sgml
src/backend/catalog/heap.c
src/backend/catalog/system_views.sql
src/backend/commands/analyze.c
src/backend/commands/vacuum.c
src/backend/executor/nodeHash.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/optimizer/plan/createplan.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/cache/lsyscache.c
src/backend/utils/cache/syscache.c
src/include/catalog/catversion.h
src/include/catalog/indexing.h
src/include/catalog/pg_statistic.h
src/include/nodes/plannodes.h
src/include/utils/syscache.h
src/test/regress/expected/rules.out