fix: postgresql VACUUM FULL is the equivalent to sqlite VACUUM

This commit is contained in:
Richard Ramos 2023-08-10 09:40:08 -04:00 committed by richΛrd
parent 05d8cfdc65
commit e56f54252f
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ func WithDB(dburl string, migrate bool, shouldVacuum bool) persistence.DBOption
func executeVacuum(db *sql.DB, logger *zap.Logger) error {
logger.Info("starting PostgreSQL database vacuuming")
_, err := db.Exec("VACUUM")
_, err := db.Exec("VACUUM FULL")
if err != nil {
return err
}