RefLib

Reference library for AI

Back

postgresql_16:7.2.20.6 Examples

PostgreSQL 16 > Reference > PostgreSQL Client Applications > vacuumdb > Examples

To clean the database test: $ vacuumdb test

To clean and analyze for the optimizer a database named bigdb: $ vacuumdb --analyze bigdb

To clean a single table foo in a database named xyzzy, and analyze a single column bar of the table for the optimizer: $ vacuumdb --analyze --verbose --table='foo(bar)' xyzzy

To clean all tables in the foo and bar schemas in a database named xyzzy: $ vacuumdb --schema='foo' --schema='bar' xyzzy

Back