!4170 修复3.0.0-3.1.0-5.1.0跨版本灰度升级失败,报错Key (oid)=(560) already exists

Merge pull request !4170 from zhangxubo/master
This commit is contained in:
opengauss_bot
2023-09-19 12:16:11 +00:00
committed by Gitee
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,8 @@ comment on function PG_CATALOG.sha1(text) is 'use the sha1 algorithm to hash';
-- sha2
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 560;
DROP FUNCTION IF EXISTS pg_catalog.sha2(text, bigint) CASCADE;
DROP FUNCTION IF EXISTS pg_catalog.sha2(text, int) CASCADE;
CREATE OR REPLACE FUNCTION pg_catalog.sha2(text, bigint)
RETURNS text
LANGUAGE internal

View File

@ -18,6 +18,8 @@ comment on function PG_CATALOG.sha1(text) is 'use the sha1 algorithm to hash';
-- sha2
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 560;
DROP FUNCTION IF EXISTS pg_catalog.sha2(text, bigint) CASCADE;
DROP FUNCTION IF EXISTS pg_catalog.sha2(text, int) CASCADE;
CREATE OR REPLACE FUNCTION pg_catalog.sha2(text, bigint)
RETURNS text
LANGUAGE internal