don't vacuum postgresql database

This commit is contained in:
Izalia Mae 2024-09-14 22:44:51 -04:00
parent 0cea1ff9e9
commit cf44b0dafe

View file

@ -224,6 +224,9 @@ def cli_db_maintenance(ctx: click.Context, fix_timestamps: bool) -> None:
with ctx.obj.database.session(True) as conn:
conn.fix_timestamps()
if ctx.obj.config.db_type == "postgres":
return
with ctx.obj.database.session(False) as conn:
with conn.execute("VACUUM"):
pass