Ensure table definitions include WHERE clauses on EXCLUDE constraints. Fixes #3726
parent
d14fb85fff
commit
ffae65bdbe
|
@ -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 %}
|
||||||
{##########################}
|
{##########################}
|
||||||
|
|
Loading…
Reference in New Issue