Skip to content

Instantly share code, notes, and snippets.

@MarshalOfficial
Created August 28, 2022 09:27
Show Gist options
  • Select an option

  • Save MarshalOfficial/e3d7c54cdd694b7c527d64f172e11df3 to your computer and use it in GitHub Desktop.

Select an option

Save MarshalOfficial/e3d7c54cdd694b7c527d64f172e11df3 to your computer and use it in GitHub Desktop.
create trigger to run after insert update delete on a table and call specific function for each row
CREATE TRIGGER user_changes AFTER INSERT OR UPDATE OR DELETE ON public.users FOR EACH ROW EXECUTE PROCEDURE change_trigger();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment