CREATE FUNCTION _api.post_update() RETURNS TRIGGER LANGUAGE plpgsql VOLATILE AS $BODY$ DECLARE _length INTEGER; BEGIN RETURN NEW; END $BODY$; GRANT EXECUTE ON FUNCTION _api.post_update() TO rest_user; CREATE TRIGGER api_post_update_trgr INSTEAD OF UPDATE ON api.post FOR EACH ROW EXECUTE PROCEDURE _api.post_update();