]> granicus.if.org Git - postgresql/commit
vacuumdb: Add option --analyze-in-stages
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Apr 2014 03:15:05 +0000 (23:15 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Apr 2014 04:44:25 +0000 (00:44 -0400)
commitc92c3d50d7fbe7391b5fc864b444346b2db29ffe
treef013c8c717ca03f1a69d34e206c22f7c7cdf22f0
parent0d3b2b80aa6aee753f372bb0300a131691e9f55c
vacuumdb: Add option --analyze-in-stages

Add vacuumdb option --analyze-in-stages which runs ANALYZE three times
with different configuration settings, adopting the logic from the
analyze_new_cluster.sh script that pg_upgrade generates.  That way,
users of pg_dump/pg_restore can also use that functionality.

Change pg_upgrade to create the script so that it calls vacuumdb instead
of implementing the logic itself.
contrib/pg_upgrade/check.c
doc/src/sgml/ref/vacuumdb.sgml
src/bin/scripts/t/102_vacuumdb_stages.pl [new file with mode: 0644]
src/bin/scripts/vacuumdb.c