Ensure table definitions include WHERE clauses on EXCLUDE constraints. Fixes #3726

This commit is contained in:
Aditya Toshniwal 2018-12-20 10:19:54 +00:00 committed by Dave Page
parent d14fb85fff
commit ffae65bdbe

View File

@ -90,11 +90,11 @@
{% endif %}{% if data.fillfactor %} {% endif %}{% if data.fillfactor %}
WITH (FILLFACTOR={{data.fillfactor}}){% endif %}{% if data.spcname and data.spcname != "pg_default" %} WITH (FILLFACTOR={{data.fillfactor}}){% endif %}{% if data.spcname and data.spcname != "pg_default" %}
USING INDEX TABLESPACE {{ conn|qtIdent(data.spcname) }}{% endif %} USING INDEX TABLESPACE {{ conn|qtIdent(data.spcname) }}{% endif %}
{% if data.condeferrable %} {% if data.indconstraint %}WHERE ({{data.indconstraint}}){% endif%}{% if data.condeferrable %}
DEFERRABLE{% if data.condeferred %} DEFERRABLE{% if data.condeferred %}
INITIALLY DEFERRED{% endif%} INITIALLY DEFERRED{% endif%}
{% endif%}{% if data.constraint %} WHERE ({{data.constraint}}){% endif%} {% endif%}
{% endfor %} {% endfor %}
{%- endmacro %} {%- endmacro %}
{##########################} {##########################}