From 0c838613a942fc2560fe9d5be06a281dae41bfab Mon Sep 17 00:00:00 2001 From: Paul Cioanca Date: Thu, 21 Nov 2024 15:22:35 +0200 Subject: [PATCH] fix: pg_upgrade_script --- ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;