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

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

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

意见反馈
编组 3备份
openGauss 2024-03-19 00:49:40
取消