我试图使用查询从mover_location表中获取最近的人,如下所示:
select * from mover_location where
public.st_dwithin(public.st_geogfromtext('SRID=4326;POINT(11.2565999 75.7711587)'),
last_seen_location_geog, 1060)
哪个不起作用,给我一个如下错误:
ERROR: function _st_expand(public.geography, double precision) does not exist
并且我没有调用st_expand函数,我该如何解决这个问题,或者还有其他
解决方法?谢谢。
我的mover_location表结构如下,这里last_seen_location_geog是地理类型
更新: -
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: SELECT $1 && _ST_Expand($2,$3) AND $2 && _ST_Expand($1,$3) AND _ST_DWithin($1, $2, $3, true)
CONTEXT: SQL function "st_dwithin" during inlining
答案 0 :(得分:0)
将公共架构添加到search_path:
set search_path to your_schema, public;