Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Database Related
>
Database Service
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
443
Star
1.5K
Fork
1.8K
openGauss
/
openGauss-server
Code
Issues
982
Pull Requests
153
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
创建并使用自定义类型创建视图,重命名该自定义类型后,无法获取视图定义
Done
#I4W3UB
Bug
WenBling
Opened this issue
2022-03-03 12:21
【标题描述】:创建并使用自定义类型创建视图,重命名该自定义类型后,无法获取视图定义 【测试类型:SQL功能】 【测试版本:2.1.0】 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): CentOS Linux release 7.6.1810 (Core) Linux master 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 GNU/Linux 【测试环境】(单机/1主x备x级联备):单机 【数据库版本】(查询命令: gaussdb –V): openGauss 2.1.0 build 590b0f8e 【操作步骤】(请填写详细的操作步骤): 1. create type type1 as (a int); 2. create view v1 as select '(1)'::type1; 3. alter type type1 rename to type2; 4. select pg_get_viewdef('v1'); 5. drop view v1 cascade; 【预期输出】: 语句3执行失败,存在依赖不允许重命名 【实际输出】: 语句3执行成功,但语句4无法获取视图定义,且语句5无法删除原视图 【日志信息】(请附上日志文件、截图、coredump信息): 
【标题描述】:创建并使用自定义类型创建视图,重命名该自定义类型后,无法获取视图定义 【测试类型:SQL功能】 【测试版本:2.1.0】 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): CentOS Linux release 7.6.1810 (Core) Linux master 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 GNU/Linux 【测试环境】(单机/1主x备x级联备):单机 【数据库版本】(查询命令: gaussdb –V): openGauss 2.1.0 build 590b0f8e 【操作步骤】(请填写详细的操作步骤): 1. create type type1 as (a int); 2. create view v1 as select '(1)'::type1; 3. alter type type1 rename to type2; 4. select pg_get_viewdef('v1'); 5. drop view v1 cascade; 【预期输出】: 语句3执行失败,存在依赖不允许重命名 【实际输出】: 语句3执行成功,但语句4无法获取视图定义,且语句5无法删除原视图 【日志信息】(请附上日志文件、截图、coredump信息): 
Comments (
2
)
Sign in
to comment
Status
Done
Backlog
Confirmed
已答复
Canceled
挂起
Fixing
Done
待回归
测试中
Accepted
Assignees
Not set
胡正超
gentle_hu
Assignee
Collaborator
+Assign
+Mention
Labels
sig/sqlengine
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register