【标题】修复允许通过 alter table 命令,将列名设置为 tid

【实现内容】: 禁止通过 alter table rename column_name to new_column_name 的方式,将列名设置为 tid

【根因分析】: 建表时不允许设置表名为 tid,因为 tid 时 psort 索引的预留字段。但是可以通过 alter table rename column_name to new_column_name 绕过这个限制,将列名设置为 tid。

【实现方案】: 在 rename 流程中加上对列名的校验,如果设置为 tid 则报错。

【关联需求或issue】: #I6WGG1:建表时不允许使用 tid 作为列名,但是可以通过修改表列名的方式,将列名设置为 tid

【开发自验报告】:
openGauss=# alter table astore_test rename id to tid;
ERROR: column name "tid" conflicts with a system column name
openGauss=# create table cstore_test(id int, name text) with (orientation=column);
CREATE TABLE
openGauss=# alter table cstore_test rename id to tid;
ERROR: column name "tid" conflicts with a system column name

【其他说明】: