mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-10 02:17:59 +00:00
don't vacuum postgresql database
This commit is contained in:
parent
0cea1ff9e9
commit
cf44b0dafe
|
@ -224,6 +224,9 @@ def cli_db_maintenance(ctx: click.Context, fix_timestamps: bool) -> None:
|
||||||
with ctx.obj.database.session(True) as conn:
|
with ctx.obj.database.session(True) as conn:
|
||||||
conn.fix_timestamps()
|
conn.fix_timestamps()
|
||||||
|
|
||||||
|
if ctx.obj.config.db_type == "postgres":
|
||||||
|
return
|
||||||
|
|
||||||
with ctx.obj.database.session(False) as conn:
|
with ctx.obj.database.session(False) as conn:
|
||||||
with conn.execute("VACUUM"):
|
with conn.execute("VACUUM"):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue