-- Check for isodistance signatures SELECT exists(SELECT * FROM pg_proc p INNER JOIN pg_namespace ns ON (p.pronamespace = ns.oid) WHERE ns.nspname = 'cdb_dataservices_server' AND proname = 'cdb_isodistance' AND oidvectortypes(p.proargtypes) = 'text, text, geometry, text, integer[], text[]');