首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么接地模块不能在我的Postgresql数据库中工作?

为什么接地模块不能在我的Postgresql数据库中工作?
EN

Stack Overflow用户
提问于 2022-06-03 18:06:36
回答 1查看 81关注 0票数 0

我有一个Postgresql (版本10)数据库,托管在Amazon上。我试着用接地距离模块做实验--我读到的所有东西都说模块应该是可用的,但是服务器的表现就好像它不存在一样。

代码语言:javascript
复制
=> 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.extensionsearthdistance确实出现在列表中。那我错过了什么?我需要做些什么来激活这个模块吗?

EN

回答 1

Stack Overflow用户

发布于 2022-06-03 21:26:41

你必须做create extension earthdistance才能使用它。仅仅因为二进制文件和脚本的存在并不意味着它们是活动的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72493544

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档