For each column that will contain unique references to large objects,
create a BEFORE UPDATE OR DELETE> trigger, and give the column
- name as the sole trigger argument. If you need multiple lo>
+ name as the sole trigger argument. You can also restrict the trigger
+ to only execute on updates to the column with:
+
+CREATE TRIGGER t_raster BEFORE UPDATE OF raster OR DELETE ON image
+ FOR EACH ROW EXECUTE PROCEDURE lo_manage(raster);
+
+
+ If you need multiple lo>
columns in the same table, create a separate trigger for each one,
remembering to give a different name to each trigger on the same table.