{% extends 'admin/master.html' %} {% block head_css %} {{ super() }} {% endblock %} {% block body %}

Database Size

{% if size_info.error %}
Error querying database size: {{ size_info.error }}
{% else %}
{{ size_info.total_mb }} MB
Total database size
Database: {{ size_info.database_name }}
{% if size_info.tables %}

Per-table breakdown

{% for t in size_info.tables %} {% endfor %}
Table Total (MB) Data (MB) Indexes (MB)
{{ t.name }} {{ t.total_mb }} {{ t.table_mb }} {{ t.index_mb }} {% if size_info.tables[0].total_bytes > 0 %}
{% endif %}
{% endif %}

Backup

Download a compressed snapshot of all database tables (COPY TO format, gzipped).

Download Backup
{% if purge_result %} {% if purge_result.error %}
Purge failed: {{ purge_result.error }}
{% else %}
Purged run_track_activity_jsonl from {{ purge_result.purged_rows }} row(s).
{% endif %} {% endif %} {% if purge_info and not purge_info.error %}

Purge run_track_activity_jsonl

{{ purge_info.rows_with_data }} of {{ purge_info.total_rows }} tasks have activity data ({{ purge_info.total_data_mb }} MB total)
{% for opt in purge_info.options %}
{% if opt.purgeable_rows > 0 %} purge {{ opt.purgeable_rows }} rows, save {{ opt.savings_mb }} MB {% else %} nothing to purge {% endif %}
{% endfor %}
{% elif purge_info and purge_info.error %}
Failed to load purge info: {{ purge_info.error }}
{% endif %} {% if vacuum_result %} {% if vacuum_result.error %}
Vacuum failed: {{ vacuum_result.error }}
{% else %}
VACUUM FULL plans completed. Disk space reclaimed.
{% endif %} {% endif %}

Vacuum

Run VACUUM FULL plans to rewrite the table and reclaim disk space. This locks the table briefly.

{% endif %}
{% endblock %}