Clarify trigger function return convention, per Thomas Hallgren.
authorTom Lane
Fri, 13 Aug 2004 16:17:19 +0000 (16:17 +0000)
committerTom Lane
Fri, 13 Aug 2004 16:17:19 +0000 (16:17 +0000)
doc/src/sgml/trigger.sgml

index a8ee6c7d9515926ceeba37d2b6d6347ce01164b4..56dfec80e6cd9715ff3e4f8479fd6863524d70a5 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -431,8 +431,10 @@ typedef struct Trigger
    
 
    
-    A trigger function must return either NULL or a
-    HeapTuple pointer.  Be careful to return either
+    A trigger function must return either a
+    HeapTuple pointer or a NULL pointer
+    (not a SQL NULL, that is, do not set isNull true).
+    Be careful to return either
     tg_trigtuple or tg_newtuple,
     as appropriate, if you don't want to modify the row being operated on.