Add relallfrozen to pg_class
Melanie Plageman <melanieplageman@gmail.com>
Add relallfrozen to pg_class Add relallfrozen, an estimate of the number of pages marked all-frozen in the visibility map. pg_class already has relallvisible, an estimate of the number of pages in the relation marked all-visible in the visibility map. This is used primarily for planning. relallfrozen, together with relallvisible, is useful for estimating the outstanding number of all-visible but not all-frozen pages in the relation for the purposes of scheduling manual VACUUMs and tuning vacuum freeze parameters. A future commit will use relallfrozen to trigger more frequent vacuums on insert-focused workloads with significant volume of frozen data. Bump catalog version Author: Melanie Plageman <melanieplageman@gmail.com> Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Robert Treat <rob@xzilla.net> Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Reviewed-by: Greg Sabino Mullane <htamfids@gmail.com> Discussion: https://postgr.es/m/flat/CAAKRu_aj-P7YyBz_cPNwztz6ohP%2BvWis%3Diz3YcomkB3NpYA--w%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +20 −0 |
| src/backend/access/heap/vacuumlazy.c | modified | +14 −4 |
| src/backend/catalog/heap.c | modified | +2 −0 |
| src/backend/catalog/index.c | modified | +9 −3 |
| src/backend/commands/analyze.c | modified | +6 −6 |
| src/backend/commands/cluster.c | modified | +5 −0 |
| src/backend/commands/vacuum.c | modified | +6 −0 |
| src/backend/statistics/relation_stats.c | modified | +24 −5 |
| src/backend/utils/cache/relcache.c | modified | +2 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_class.h | modified | +3 −0 |
| src/include/commands/vacuum.h | modified | +1 −0 |
| src/test/regress/expected/stats_import.out | modified | +63 −36 |
| src/test/regress/sql/stats_import.sql | modified | +34 −15 |
Documentation touched
Discussion
Cited messages not in the archive:
flat/CAAKRu_aj-P7YyBz_cPNwztz6ohP+vWis=iz3YcomkB3NpYA--w@mail.gmail.com