CREATE OR REPLACE FUNCTION street_insert_update() RETURNS trigger AS '
 BEGIN
  INSERT INTO street_updates (streetid) VALUES (new.id);
  RETURN NULL;
 END
' LANGUAGE plpgsql;

CREATE TRIGGER street_insert_trigger AFTER INSERT ON street FOR EACH ROW EXECUTE PROCEDURE street_insert_update();

