COST statement should not be automatically duplicated after creating trigger function. Fixes #3526

This commit is contained in:
Akshay Joshi
2018-08-06 11:54:25 +05:30
parent e9e8b0b433
commit a17aa212f0
2 changed files with 3 additions and 3 deletions

View File

@@ -12,9 +12,8 @@ CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}()
{% if data.provolatile %}{% if data.provolatile == 'i' %}IMMUTABLE{% elif data.provolatile == 's' %}STABLE{% else %}VOLATILE{% endif %} {% endif %}{% if data.proleakproof %}LEAKPROOF {% else %}NOT LEAKPROOF {% endif %}
{% if data.proisstrict %}STRICT {% endif %}
{% if data.prosecdef %}SECURITY DEFINER {% endif %}
{% if data.proiswindow %}WINDOW{% endif %}{% if data.procost %}
COST {{data.procost}}{% endif %}{% if data.prorows and (data.prorows | int) > 0 %}
{% if data.proiswindow %}WINDOW{% endif %}
{% if data.prorows and (data.prorows | int) > 0 %}
ROWS {{data.prorows}}{% endif -%}{% if data.variables %}{% for v in data.variables %}