diff --git a/pg/wh_nagios--2.3--2.4.sql b/pg/wh_nagios--2.3--2.4.sql index 6070cbc..95498ea 100644 --- a/pg/wh_nagios--2.3--2.4.sql +++ b/pg/wh_nagios--2.3--2.4.sql @@ -439,6 +439,10 @@ EXCEPTION END; $$; +COMMENT ON FUNCTION wh_nagios.create_partition_on_insert_metric() IS +'Trigger that create a dedicated partition when a new metric is inserted in the table wh_nagios.metrics, +and GRANT the necessary ACL on it.'; + /* wh_nagios.cleanup_service(bigint) Aggregate all data by day in an array, to avoid space overhead and benefit TOAST compression. This will be done for every metric corresponding to the service. diff --git a/pg/wh_nagios--2.4.sql b/pg/wh_nagios--2.4.sql index 79b1940..533acda 100644 --- a/pg/wh_nagios--2.4.sql +++ b/pg/wh_nagios--2.4.sql @@ -309,8 +309,7 @@ REVOKE ALL ON FUNCTION wh_nagios.create_partition_on_insert_metric() FROM public COMMENT ON FUNCTION wh_nagios.create_partition_on_insert_metric() IS 'Trigger that create a dedicated partition when a new metric is inserted in the table wh_nagios.metrics, -and GRANT the necessary ACL on it. -If the dedicated partition is alreay present (which should not happen, due to the other trigger), it''s truncated.'; +and GRANT the necessary ACL on it.'; --Automatically delete a partition when a service is removed.