【发布时间】:2011-06-06 02:48:09
【问题描述】:
我正在运行 Postgresql 查询并收到以下错误:
ActiveRecord::StatementInvalid (PGError: ERROR: could not open segment 1 of relationship base/20983/24161 (target block 5046584): No such file or directory
查询的格式为 'SELECT "locations".* FROM "locations" WHERE ("locations"."id" IN (115990, 78330, 77891, 78248, ...)',其中大约 600 个 id IN 子句 - 我知道这不是一个最佳查询,但这是我目前必须使用的!
服务器在 x86_64-pc-linux-gnu 上运行 PostgreSQL 8.4.6,由 GCC gcc-4.4.real (Ubuntu 4.4.1-4ubuntu9) 4.4.1 编译,64 位。还安装了 Postgis 1.5,并且位置表包含几何列。
任何人都知道可能导致错误的原因是什么?谢谢!
【问题讨论】:
标签: postgresql postgis