-- -- acs_object_util__object_type_exist_p/1 -- create or replace function acs_object_util__object_type_exist_p( p_object_type character varying ) returns bool as $$ DECLARE v_exist_p boolean; BEGIN select true into v_exist_p from acs_object_types where object_type = p_object_type; return FOUND; END; $$ language plpgsql;