text: CREATE RULE shoelace_ins AS ON INSERT TO shoelace
      DO INSTEAD
      INSERT INTO shoelace_data VALUES (
             NEW.sl_name,
             NEW.sl_avail,
             NEW.sl_color,
             NEW.sl_len,
             NEW.sl_unit
      );
  
  CREATE RULE shoelace_upd AS ON UPDATE TO shoelace
      DO INSTEAD
      UPDATE shoelace_data
         SET sl_name = NEW.sl_name,
             sl_avail = NEW.sl_avail,
             sl_color = NEW.sl_color,
             sl_len = NEW.sl_len,
             sl_unit = NEW.sl_unit
       WHERE sl_name = OLD.sl_name;
  
  CREATE RULE shoelace_del AS ON DELETE TO shoelace
      DO INSTEAD
      DELETE FROM shoelace_data
       WHERE sl_name = OLD.sl_name;
  