{% load i18n %}{% if error %}
{{ error }}
{% else %}
{{ verdict.label }} {% blocktrans with budget=rehearsal.budget_ms wait=rehearsal.lock_timeout %}budget {{ budget }} ms · lock wait {{ wait }}{% endblocktrans %}
{% if rehearsal.outcome == 'error' %}

{{ rehearsal.message }}

{% trans "Found here instead of in production, and nothing was changed." %}

{% elif rehearsal.over_budget %} {% if rehearsal.limit == 'lock' %}

{% trans "The statement never reached the table — another transaction is holding it. That is what the real change would hit too. Check the Locks panel, then try again." %}

{% else %}

{% trans "The statement was still working when the budget ran out. Running it for real would hold ACCESS EXCLUSIVE at least this long, and every reader would queue behind it." %}

{% endif %} {% else %}

{% trans "Measured, not estimated: the statement really ran. The real button sends it as one autocommit statement, so this is how long the table is locked." %}

{% endif %} {% if rehearsal.ddl %}
{% trans "Statement" %}
{{ rehearsal.ddl }}
{% endif %}

{% trans "Rolled back — the column is unchanged." %}

{% endif %}