164 Star 224 Fork 1.2K

openGauss / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
GAUSS-01271----GAUSS-01280.md 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
liyang 提交于 2020-12-18 11:47 . error code

GAUSS-01271 -- GAUSS-01280

GAUSS-01271: "non-partitioned table does not support local partitioned indexes "

SQLSTATE: 0A000

错误原因:非分区表不支持创建local模式下的分区索引。

解决办法:1、如果需要创建local模式下的分区索引,需要重新创建基表为分区表。

2、如果不需要创建local模式下的分区索引,需要删除Create unique index...local;语法最后的local参数。

GAUSS-01274: "cannot create index on foreign table '%s'"

SQLSTATE: 42809

错误原因:不能在外表上创建索引。

解决办法:请勿在外表上创建索引。

GAUSS-01275: "cannot create indexes on temporary tables of other sessions"

SQLSTATE: 0A000

错误原因:不能在其他会话的临时表上创建索引。

解决办法:请勿在其他会话的临时表上创建索引。

GAUSS-01276: "when creating partitioned index, get table partitions failed"

SQLSTATE: XX000

错误原因:创建分区索引时,获取分区表失败。

解决办法:请检查分区表的分区定义是否正确,如果不正确,请重建分区表。

GAUSS-01278: "number of partitions of LOCAL index must equal that of the underlying table"

SQLSTATE: 42P17

错误原因:分区表中分区数目小于分区索引的数目。

解决办法:请重建分区表中分区数,必须等于分区索引的数目。

GAUSS-01279: "unique index columns must contain the partition key"

SQLSTATE: 42P17

错误原因:唯一索引列必须包含分区键。

解决办法:唯一索引列必须包含分区键。

GAUSS-01280: "unique index columns must contain the partition key and collation must be default collation"

SQLSTATE: 42P17

错误原因:唯一索引列必须包含分区键。

解决办法:唯一索引列必须包含分区键,排序方式必须使用默认方式。

1
https://gitee.com/opengauss/docs.git
git@gitee.com:opengauss/docs.git
opengauss
docs
docs
3.0.0

搜索帮助