root/sql/sprocs/noit.update_mns_via_check_tag.sql

Revision 7bdcc136d61994452c7859ab1437d1b6a3af6402, 449 bytes (checked in by Denish Patel <denish@omniti.com>, 5 years ago)

updated noit.update_mns_via_check_tag

  • Property mode set to 100644
Line 
1 -- formerly stratcon.trig_update_tsvector_from_check_tags()
2
3 CREATE OR REPLACE FUNCTION noit.update_mns_via_check_tag()
4   RETURNS trigger AS
5 $BODY$
6 DECLARE
7 BEGIN
8     UPDATE noit.metric_name_summary SET ts_search_all=stratcon.metric_name_summary_tsvector(NEW.sid,metric_name,metric_type)
9     where sid=NEW.sid;
10    RETURN NEW;
11 END
12 $BODY$
13   LANGUAGE 'plpgsql'   SECURITY DEFINER;
14
15 GRANT EXECUTE ON FUNCTION noit.update_mns_via_check_tag() TO stratcon;
Note: See TracBrowser for help on using the browser.