1 -- insert creates the location tables, creates location indexes if indexed == true
2 CREATE TRIGGER placex_before_insert BEFORE INSERT ON placex
3 FOR EACH ROW EXECUTE PROCEDURE placex_insert();
4 CREATE TRIGGER osmline_before_insert BEFORE INSERT ON location_property_osmline
5 FOR EACH ROW EXECUTE PROCEDURE osmline_insert();
7 -- update insert creates the location tables
8 CREATE TRIGGER placex_before_update BEFORE UPDATE ON placex
9 FOR EACH ROW EXECUTE PROCEDURE placex_update();
10 CREATE TRIGGER osmline_before_update BEFORE UPDATE ON location_property_osmline
11 FOR EACH ROW EXECUTE PROCEDURE osmline_update();
13 -- diff update triggers
14 CREATE TRIGGER placex_before_delete AFTER DELETE ON placex
15 FOR EACH ROW EXECUTE PROCEDURE placex_delete();
16 CREATE TRIGGER place_before_delete BEFORE DELETE ON place
17 FOR EACH ROW EXECUTE PROCEDURE place_delete();
18 CREATE TRIGGER place_before_insert BEFORE INSERT ON place
19 FOR EACH ROW EXECUTE PROCEDURE place_insert();
21 CREATE TRIGGER location_postcode_before_update BEFORE UPDATE ON location_postcode
22 FOR EACH ROW EXECUTE PROCEDURE postcode_update();