CREATE OR REPLACE FUNCTION update_dt_column() RETURNS TRIGGER AS $$
BEGIN
UPDATE TG_TABLE_NAME SET dt_update = NOW() WHERE id = NEW.id;
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER t_phones_dt_update
AFTER UPDATE ON phones FOR EACH ROW EXECUTE PROCEDURE update_dt_column();