-- -- acs_log__error/2 -- create or replace function acs_log__error( error__log_key character varying, error__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'), 'error', error__log_key, error__message); return 0; END; $$ language plpgsql;