gpt4 book ai didi

postgresql - 错误 : type "public.geometry" does not exist

转载 作者:行者123 更新时间:2023-11-29 11:59:10 24 4
gpt4 key购买 nike

我应该创建一个空间数据库并安装了 Postgres 并添加了 PostGIS 扩展。

当我尝试添加 public.geometry 类型的列时,它总是给出一条错误消息

geometry type doesn't exist

我不熟悉 Postgres,也不知道解决方案可能是什么。我尝试用 Google 搜索它,但一无所获。

最佳答案

CREATE EXTENSION postgis; 了吗?检查psql中的\dx

您是否将 PostGIS 扩展置于其他模式中?在 psql 中检查 \dT *.geometry

关于postgresql - 错误 : type "public.geometry" does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40711832/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com