From cf44b0dafeecc8303190f2cae43d7ed48c07b34a Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sat, 14 Sep 2024 22:44:51 -0400 Subject: [PATCH] don't vacuum postgresql database --- relay/manage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/relay/manage.py b/relay/manage.py index a651eb3..b76443d 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -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