【发布时间】:2020-07-15 10:08:18
【问题描述】:
我在schemaName 内的表tableName 上有一个索引badName,如下创建:
CREATE UNIQUE INDEX badName ON schemaName.tableName USING btree;
现在我想将索引重命名为goodName。这是我的尝试:
ALTER INDEX schemaName.tableName.badName RENAME TO goodName;
结果:
Error [0A000] cross-database references are not implemented
我正在使用 postgresql 数据库,但想使用原生 SQL 查询。
【问题讨论】:
标签: sql postgresql indexing