[英]postgresql db functions are not working
I was trying to get the nearest people from mover_location table using the query as follows : 我试图使用以下查询从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)
Which is not working and give me error like as follows : 这是行不通的,并给我这样的错误,如下所示:
ERROR: function _st_expand(public.geography, double precision) does not exist
and i didnt called the st_expand function , How can i resolve this ,Or is there any other 我没有调用st_expand函数,如何解决这个问题,或者还有其他问题吗?
workarounds ? 解决方法? thanks . 谢谢 。
My mover_location table structure is as follows ,here last_seen_location_geog is of geography type 我的mover_location表结构如下,其中last_seen_location_geog是地理类型
UPDATE :- 更新:-
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
将公共架构添加到您的search_path:
set search_path to your_schema, public;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.