Fix wording of section comparing triggers and rules; old wording as
authorBruce Momjian <bruce@momjian.us>
Tue, 16 Dec 2008 03:12:08 +0000 (03:12 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 16 Dec 2008 03:12:08 +0000 (03:12 +0000)
confusing.

doc/src/sgml/rules.sgml

index 5eea4c8381072a1cbd06fa319f1dd6760ccc8137..e2b6377909bee178155c2db34267613218452aff 100644 (file)
@@ -1869,13 +1869,9 @@ GRANT SELECT ON phone_number TO secretary;
 </para>
 
 <para>
-    On the other hand, a trigger that is fired on
-    <command>INSERT</command> on a view can do the same as a rule: put
-    the data somewhere else and suppress the insert in the view. But
-    it cannot do the same thing on <command>UPDATE</command> or
-    <command>DELETE</command>, because there is no real data in the
-    view relation that could be scanned, and thus the trigger would
-    never get called. Only a rule will help.
+    On the other hand, a trigger cannot be created on views because
+    there is no real data in a view relation;  however INSERT, UPDATE,
+    and DELETE rules can be created on views.
 </para>
 
 <para>