From c0d640944f3f78ac8fe1f2a211608f43de743fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=85=E7=A8=8B?= <517719039@qq.com> Date: Thu, 24 Apr 2025 17:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddb4ai=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../upgrade-post_catalog_otherdb_93_044.sql | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_044.sql b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_044.sql index 8ef9c84d86..e3f6c3d3b4 100644 --- a/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_044.sql +++ b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_044.sql @@ -28,3 +28,49 @@ comment on function pg_catalog.query_parameterization_views( out parameterized_query text ) is 'query_parameterization_views'; SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 0; + +ALTER FUNCTION db4ai.create_snapshot( + IN i_schema NAME, + IN i_name NAME, + IN i_commands TEXT[], + IN i_vers NAME, + IN i_comment TEXT +) SET client_min_messages TO ERROR; + +ALTER FUNCTION db4ai.prepare_snapshot( + IN i_schema NAME, + IN i_parent NAME, + IN i_commands TEXT[], + IN i_vers NAME, + IN i_comment TEXT +) SET client_min_messages TO ERROR; + +ALTER FUNCTION db4ai.manage_snapshot_internal( + IN i_schema NAME, + IN i_name NAME, + IN publish BOOLEAN +) SET client_min_messages TO ERROR; + +ALTER FUNCTION db4ai.archive_snapshot( + IN i_schema NAME, + IN i_name NAME +) SET client_min_messages TO ERROR; + +ALTER FUNCTION db4ai.publish_snapshot( + IN i_schema NAME, + IN i_name NAME +) SET client_min_messages TO ERROR; + +ALTER FUNCTION db4ai.purge_snapshot( + IN i_schema NAME, + IN i_name NAME +) SET client_min_messages TO ERROR; + +ALTER FUNCTION db4ai.sample_snapshot( + IN i_schema NAME, + IN i_parent NAME, + IN i_sample_infixes NAME[], + IN i_sample_ratios NUMBER[], + IN i_stratify NAME[], + IN i_sample_comments TEXT[] +) SET client_min_messages TO ERROR; -- Gitee