NJrslv commented on code in PR #1629:
URL: https://github.com/apache/cloudberry/pull/1629#discussion_r3015498345


##########
gpcontrib/gp_stats_collector/gp_stats_collector--1.0--1.1.sql:
##########
@@ -0,0 +1,113 @@
+/* gp_stats_collector--1.0--1.1.sql */
+
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION
+\echo Use "ALTER EXTENSION gp_stats_collector UPDATE TO '1.1'" to load this 
file. \quit
+
+CREATE SCHEMA gpsc;
+
+-- Unlink existing objects from extension.
+ALTER EXTENSION gp_stats_collector DROP VIEW gpsc_stat_messages;
+ALTER EXTENSION gp_stats_collector DROP FUNCTION gpsc_stat_messages_reset();
+ALTER EXTENSION gp_stats_collector DROP FUNCTION 
__gpsc_stat_messages_f_on_segments();
+ALTER EXTENSION gp_stats_collector DROP FUNCTION 
__gpsc_stat_messages_f_on_master();
+ALTER EXTENSION gp_stats_collector DROP FUNCTION 
__gpsc_stat_messages_reset_f_on_segments();
+ALTER EXTENSION gp_stats_collector DROP FUNCTION 
__gpsc_stat_messages_reset_f_on_master();
+
+-- Now drop the objects.
+DROP VIEW gpsc_stat_messages;
+DROP FUNCTION gpsc_stat_messages_reset();
+DROP FUNCTION __gpsc_stat_messages_f_on_segments();
+DROP FUNCTION __gpsc_stat_messages_f_on_master();
+DROP FUNCTION __gpsc_stat_messages_reset_f_on_segments();
+DROP FUNCTION __gpsc_stat_messages_reset_f_on_master();
+
+-- Recreate functions and view in new schema.
+CREATE FUNCTION gpsc.__stat_messages_reset_f_on_master()
+RETURNS SETOF void
+AS 'MODULE_PATHNAME', 'gpsc_stat_messages_reset'
+LANGUAGE C EXECUTE ON MASTER;

Review Comment:
   Done - 
https://github.com/apache/cloudberry/pull/1629/changes/733b0822415970e25ea3601af808b94f3152e692



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to