diff --git a/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_92_806.sql b/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_92_806.sql index 1b19742ebdb90b7eb7043266b88ab8b51b867c54..706cf5506191228f1a6d7eaee85333139368038b 100644 --- a/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_92_806.sql +++ b/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_92_806.sql @@ -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 diff --git a/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_92_806.sql b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_92_806.sql index 1b19742ebdb90b7eb7043266b88ab8b51b867c54..706cf5506191228f1a6d7eaee85333139368038b 100644 --- a/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_92_806.sql +++ b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_92_806.sql @@ -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