create or replace function upd_dt() returns trigger as ' begin NEW.updatedate := current_timestamp; RETURN NEW; end; ' LANGUAGE plpgsql;