I\'m trying to work with current_setting().
current_setting()
I came up with this:
CREATE OR REPLACE FUNCTION process_audit() RETURNS TRIGGER AS $audit$ D
Shouldn't you also make a cast? As follows,
user_id := current_setting('hws.current_user_id')::integer;