8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91102da commit 8e709a6Copy full SHA for 8e709a6
doc/src/sgml/plpgsql.sgml
@@ -3999,13 +3999,10 @@ CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
3999
--
4000
IF (TG_OP = 'DELETE') THEN
4001
INSERT INTO emp_audit SELECT 'D', now(), user, OLD.*;
4002
- RETURN OLD;
4003
ELSIF (TG_OP = 'UPDATE') THEN
4004
INSERT INTO emp_audit SELECT 'U', now(), user, NEW.*;
4005
- RETURN NEW;
4006
ELSIF (TG_OP = 'INSERT') THEN
4007
INSERT INTO emp_audit SELECT 'I', now(), user, NEW.*;
4008
4009
END IF;
4010
RETURN NULL; -- result is ignored since this is an AFTER trigger
4011
END;
0 commit comments