Created
February 27, 2016 04:16
-
-
Save tpitale/b77d51ac2926e20ad6c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION update_notify() RETURNS trigger AS $$ | |
DECLARE | |
channel text; | |
BEGIN | |
channel := TG_ARGV[0]; | |
NOTIFY channel; | |
RETURN NEW; | |
END; | |
$$ LANGUAGE plpgsql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment