|
vacuumdbNamevacuumdb — Clean and analyze a Postgres databasevacuumdb [ options ] [ --analyze | -z ] [ --alldb | -a ] [ --verbose | -v ] [ --table 'table [ ( column [,...] ) ]' ] [ [-d] dbname ] Inputsvacuumdb accepts the following command line arguments:
vacuumdb also accepts the following command line arguments for connection parameters:
Descriptionvacuumdb is a utility for cleaning a Postgres database. vacuumdb will also generate internal statistics used by the Postgres query optimizer. vacuumdb is a shell script wrapper around the backend command VACUUM via the Postgres interactive terminal psql. There is no effective difference between vacuuming databases via this or other methods. psql must be found by the script and a database server must be running at the targeted host. Also, any default settings and environment variables available to psql and the libpq front-end library do apply. UsageTo clean the database test: $ vacuumdb test To analyze a database named bigdb for the optimizer: $ vacuumdb --analyze bigdb To analyze a single column bar in table foo in a database named xyzzy for the optimizer: $ vacuumdb --analyze --verbose --table 'foo(bar)' xyzzy |
|||||||||||||||||
With any suggestions or questions please feel free to contact us |