File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 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
7676 <para>
7777 For each column that will contain unique references to large objects,
7878 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</>
8088 columns in the same table, create a separate trigger for each one,
8189 remembering to give a different name to each trigger on the same table.
8290 </para>
You can’t perform that action at this time.
0 commit comments