diff --git a/ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh b/ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh index 871015ef4..4d465036d 100755 --- a/ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh +++ b/ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh @@ -457,7 +457,7 @@ begin loop if obj->>'owner' = 'postgres' then execute(format('alter %s %s(%s) owner to postgres;' - , case when obj->>'kind' = 'p' then 'procedure' else 'function' + , case when obj->>'kind' = 'p' then 'procedure' else 'function' end , (obj->>'oid')::regproc , pg_get_function_identity_arguments((obj->>'oid')::regproc))); end if;