We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2db8de5 + a9db053 commit eb065dfCopy full SHA for eb065df
pkg/maintenance/postgresqlcnpg.go
@@ -170,9 +170,9 @@ func (p *PostgreSQLCNPG) doVacuum(ctx context.Context) error {
170
return fmt.Errorf("failed to connect to database %s: %w", db, err)
171
}
172
173
- if _, err := dbConn.Exec(ctx, "VACUUM"); err != nil {
+ if _, err := dbConn.Exec(ctx, "VACUUM ANALYZE"); err != nil {
174
_ = dbConn.Close(ctx)
175
- return fmt.Errorf("failed to execute VACUUM on %s: %w", db, err)
+ return fmt.Errorf("failed to execute VACUUM ANALYZE on %s: %w", db, err)
176
177
178
if err := dbConn.Close(ctx); err != nil {
0 commit comments