加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

为什么不将PostGIS安装在PostgreSQL数据库“postgres”中?

发布时间:2020-12-13 15:55:09 所属栏目:百科 来源:网络整理
导读:PostGIS installation documentation读取: PostGIS is an optional extension that must be enabled in each database you want to use it in before you can use it. Installing the software is just the first step. DO NOT INSTALL it in the database
PostGIS installation documentation读取:

PostGIS is an optional extension that must be enabled in each database you want to use it in before you can use it. Installing the software is just the first step. DO NOT INSTALL it in the database called postgres.

我们在Docker中运行PostgreSQL,只需要一个数据库,所以我们一直在使用默认数据库postgres.我的第一个倾向是在那里安装PostGIS,但文档似乎很清楚,我们不应该这样做.

是否有理由不将PostGIS安装在默认数据库上,或者这个说明是否意味着当数据位于foobar数据库中时,人们不会在postgres数据库中意外安装PostGIS?

谢谢!

解决方法

将PostGIS安装到postgres数据库中没有任何危险.这个说明只是让用户不要像你怀疑的那样迷惑自己.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读