diff options
author | Nathan Bossart <nathan@postgresql.org> | 2025-03-18 16:32:56 -0500 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2025-03-18 16:32:56 -0500 |
commit | edba754f052ea0c02287080004aa6051eaa4f597 (patch) | |
tree | 9a2e1bf62504689bccaa4acf3cbbc74edb8dbbe5 /src/backend/commands/variable.c | |
parent | 9c03c8d187210f112371aab881b379bd4800562c (diff) | |
download | postgresql-edba754f052ea0c02287080004aa6051eaa4f597.tar.gz postgresql-edba754f052ea0c02287080004aa6051eaa4f597.zip |
vacuumdb: Add option for analyzing only relations missing stats.
This commit adds a new --missing-stats-only option that can be used
with --analyze-only or --analyze-in-stages. When this option is
specified, vacuumdb will analyze a relation if it lacks any
statistics for a column, expression index, or extended statistics
object. This new option is primarily intended for use after
pg_upgrade (since it can now retain most optimizer statistics), but
it might be useful in other situations, too.
Author: Corey Huinker <corey.huinker@gmail.com>
Co-authored-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: John Naylor <johncnaylorls@gmail.com>
Discussion: https://postgr.es/m/Z5O1bpcwDrMgyrYy%40nathan
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions