Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.