Welcome To openGauss Community
Hey @xiaqi14 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: Community ,
and any of the committers: @wangfeihuo, @shenzheng4, @superlchf, @totaj, @hwworkholic, @dodders, @chenxiaobin19, @zhangfengzhi123, @quemingjian, @CarrotGo, @congzhou2603, @muyulinzhong, @libiao2024, @jemappellehc, @chendong76, @ywzq1161327784 .


B012 版本 VT报告:
此问题的修改方案为同S*数据库一样,禁止在sys中建表:

请基于B012 版本回归。


验收日期:2025/6/26
验收版本:7.0.0-RC2
gaussdb (openGauss 7.0.0-RC2 build 6c1dbca1) compiled at 2025-06-25 06:47:58 commit 0 last mr 7949
验收结论:通过



【回归日期】2025.12.1
【回归版本】6.0.3
【回归人员】sungang14
【回归结论】通过
【回归步骤】

禁止在sys中建表



测试类型
SQL功能
测试版本
7.0.0-RC2
问题描述
兼容D库INFORMATION_SCHEMA_TSQL.COLUMNS视图未统计sys下的表信息
操作系统和硬件信息
测试环境
企业版单机
被测功能
SQL功能
预置条件
创建D库及shark插件
操作步骤
set search_path to sys;
CREATE TABLE employees (
employee_id INT ,
full_name VARCHAR(100) NOT NULL,
department VARCHAR(30) NOT NULL,
position VARCHAR(30),
email VARCHAR(100) UNIQUE,
tphone VARCHAR(20),
birth_date DATE,
performance_rating NUMERIC(3,1) CHECK (performance_rating BETWEEN 0 AND 10),
CONSTRAINT pk_employee PRIMARY KEY (employee_id)
);
select table_schema, table_name, column_name, ordinal_position, column_default, is_nullable,datetime_precision,
data_type, numeric_precision from information_schema_tsql.columns c
inner join pg_namespace s on c.table_schema = s.nspname
where s.nspname = 'sys';
预期输出
查询出表信息
实际输出
未查询出表信息
日志信息
创建另一个schema后可以查询出
提单组织
内部测试
测试代码