File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,15 @@ CREATE TRIGGER t_raster BEFORE UPDATE OR DELETE ON image
76
76
<para>
77
77
For each column that will contain unique references to large objects,
78
78
create a <literal>BEFORE UPDATE OR DELETE</> trigger, and give the column
79
- name as the sole trigger argument. If you need multiple <type>lo</>
79
+ name as the sole trigger argument. You can also restrict the trigger
80
+ to only execute on updates to the column with:
81
+
82
+ <programlisting>
83
+ CREATE TRIGGER t_raster BEFORE UPDATE OF raster OR DELETE ON image
84
+ FOR EACH ROW EXECUTE PROCEDURE lo_manage(raster);
85
+ </programlisting>
86
+
87
+ If you need multiple <type>lo</>
80
88
columns in the same table, create a separate trigger for each one,
81
89
remembering to give a different name to each trigger on the same table.
82
90
</para>
You can’t perform that action at this time.
0 commit comments