Please help get my head around trigger creation syntax
create trigger cool_trigger
after insert or update
on custom_object_reference
deferrable initially deferred
for each statement
execute procedure do_something();
syntax error at or near "deferrable"
I am using PostgreSQL 9.6.7
Only a constraint trigger can be deferred, so you'll have to use
CREATE CONSTRAINT TRIGGER ...
As the documentation says, you can only do this for AFTER ROW
triggers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With