postgresql/src/backend/access
Alvaro Herrera 0827e8af70
autovacuum: handle analyze for partitioned tables
Previously, autovacuum would completely ignore partitioned tables, which
is not good regarding analyze -- failing to analyze those tables means
poor plans may be chosen.  Make autovacuum aware of those tables by
propagating "changes since analyze" counts from the leaf partitions up
the partitioning hierarchy.

This also introduces necessary reloptions support for partitioned tables
(autovacuum_enabled, autovacuum_analyze_scale_factor,
autovacuum_analyze_threshold).  It's unclear how best to document this
aspect.

Author: Yuzuko Hosoya <yuzukohosoya@gmail.com>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Tomas Vondra <tomas.vondra@enterprisedb.com>
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/CAKkQ508_PwVgwJyBY=0Lmkz90j8CmWNPUxgHvCUwGhMrouz6UA@mail.gmail.com
2021-04-08 01:19:36 -04:00
..
brin Don't add non-existent pages to bitmap from BRIN 2021-04-07 15:58:36 +02:00
common autovacuum: handle analyze for partitioned tables 2021-04-08 01:19:36 -04:00
gin Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
gist Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
hash Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
heap Teach VACUUM to bypass unnecessary index vacuuming. 2021-04-07 16:14:54 -07:00
index Simplify state managed by VACUUM. 2021-04-05 13:21:44 -07:00
nbtree Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
rmgrdesc Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
spgist Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
table Allow configurable LZ4 TOAST compression. 2021-03-19 15:10:38 -04:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Stop archive recovery if WAL generated with wal_level=minimal is found. 2021-04-06 22:56:51 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00