我有一个Postgresql (版本10)数据库,托管在Amazon上。我试着用接地距离模块做实验--我读到的所有东西都说模块应该是可用的,但是服务器的表现就好像它不存在一样。
=> select earth_distance(ll_to_earth(42.1, 19.1), ll_to_earth(42.2, 19.2));
ERROR: function ll_to_earth(numeric, numeric) does not exist
LINE 1: select earth_distance(ll_to_earth(42.1, 19.1), ll_to_earth(4...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
=> select ll_to_earth(42.1, 19.1) ;
ERROR: function ll_to_earth(numeric, numeric) does not exist
LINE 1: select ll_to_earth(42.1, 19.1) ;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
=> select earth() ;
ERROR: function earth() does not exist
LINE 1: select earth() ;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.我运行了SHOW rds.extensions,earthdistance确实出现在列表中。那我错过了什么?我需要做些什么来激活这个模块吗?
发布于 2022-06-03 21:26:41
你必须做create extension earthdistance才能使用它。仅仅因为二进制文件和脚本的存在并不意味着它们是活动的。
https://stackoverflow.com/questions/72493544
复制相似问题