【问题标题】:Postgres earth ERROR: value for domain earth violates check constraint "on_surface"Postgres earth 错误:域 earth 的值违反了检查约束“on_surface”
【发布时间】:2021-02-25 12:31:16
【问题描述】:

创建索引 PostgreSQL earth 时出错

CREATE INDEX "branch_location" ON "systems_branch" USING gist (ll_to_earth("latitude", "longitude"))

我在控制台中收到此错误消息

ERROR:  value for domain earth violates check constraint "on_surface"
CONTEXT:  SQL function "ll_to_earth" statement 1

【问题讨论】:

    标签: postgresql geo


    【解决方案1】:

    纬度和经度不能在所有行中为空

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-06
      • 1970-01-01
      • 2012-03-03
      • 2015-08-30
      • 1970-01-01
      • 2017-09-07
      • 2021-04-10
      • 1970-01-01
      相关资源
      最近更新 更多