mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-27 05:56:07 +00:00
fix: postgresql VACUUM FULL is the equivalent to sqlite VACUUM
This commit is contained in:
parent
05d8cfdc65
commit
e56f54252f
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user