-- -- acs_log__warn/2 -- create or replace function acs_log__warn( warn__log_key character varying, warn__message character varying ) returns int4 as $$ DECLARE BEGIN insert into acs_logs (log_id, log_level, log_key, message) values (nextval('t_acs_log_id_seq'), 'warn', warn__log_key, warn__message); return 0; END; $$ language plpgsql;