[CLN] finalize_db: purge `ir_logging`
Truncate the ``ir_logging`` table which accumulates Python logger messages (63 MB of ``INFO``-level ``ir.actions.server`` traces) with no business value after migration.
This commit is contained in:
@@ -23,6 +23,12 @@ EOF
|
||||
)
|
||||
query_postgres_container "$CLEANUP_SQL" "$DB_NAME"
|
||||
|
||||
# ────────────────────────────────────────────────────────────
|
||||
# Purge ir_logging (Python logger messages, no business value).
|
||||
# ────────────────────────────────────────────────────────────
|
||||
echo "Purging ir_logging..."
|
||||
query_postgres_container "TRUNCATE ir_logging;" "$DB_NAME"
|
||||
|
||||
# ────────────────────────────────────────────────────────────
|
||||
# Fix orphan ir_filters pointing to deleted ir_actions
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user