Skip to content

Instantly share code, notes, and snippets.

@brannn
Created September 25, 2014 15:33
Show Gist options
  • Select an option

  • Save brannn/7f5e8010fe181b432d19 to your computer and use it in GitHub Desktop.

Select an option

Save brannn/7f5e8010fe181b432d19 to your computer and use it in GitHub Desktop.
postgresql update timestamp trigger
CREATE TRIGGER update_last_request BEFORE UPDATE
ON requests FOR EACH ROW EXECUTE PROCEDURE
update_modified_ctimestamp();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment