postgresql7.1 select proc from sg_methods where namespace_id = :namespace_id order by method_id select service from sg_namespaces; select package_id from apm_packages where package_key = 'soap-gateway' select sg_namespace__exists(:namespace_id); select sg_method__exists(:method_id) select 0 + sg_namespace__delete(:namespace_id); select 0 + sg_method__delete(:method_id);