在PostgreSQL 9.2/PostGIS 2.0.2中,我在空间列上有一个索引,用
CREATE INDEX tiger_data_sld_the_geom_gist ON tiger_data.sld USING gist(the_geom);
Run Code Online (Sandbox Code Playgroud)
随后掉了索引
DROP INDEX tiger_data_sld_the_geom_gist;
Run Code Online (Sandbox Code Playgroud)
但现在,当我尝试重新创建时,我收到此错误:
# CREATE INDEX tiger_data_sld_the_geom_gist ON tiger_data.sld USING gist(the_geom);
ERROR: relation "tiger_data_sld_the_geom_gist" already exists
Run Code Online (Sandbox Code Playgroud)
再次删除不起作用.它说索引不存在:
# DROP INDEX tiger_data_sld_the_geom_gist;
ERROR: index "tiger_data_sld_the_geom_gist" does not exist
Run Code Online (Sandbox Code Playgroud)
我没有在任何数据库对象列表中找到关系"tiger_data_sld_the_geom_gist",尝试了DROP TABLE,并搜索了解决方案.
这个神秘关系是什么"tiger_data_sld_the_geom_gist",如何删除它以便我可以创建索引?
编辑:
还尝试重新启动服务器,并转储/删除/重新加载表(使用CASCADE删除).