Skip to content

Commit

Permalink
Fix comment on wh_nagios.create_partition_on_insert_metric()
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju committed Aug 1, 2016
1 parent 635f840 commit 63bc224
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pg/wh_nagios--2.3--2.4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions pg/wh_nagios--2.4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 63bc224

Please sign in to comment.