已合并
只有mlog没有mview同样维护mlog #7965
TinyBag创建于 2025年6月23日
只有mlog没有mview同样维护mlog #7965
已合并
Pull Request已成功合入, 合并人@opengauss_bot
(感谢 TinyBag 的贡献)2025年6月23日 关联了issue:创建物化视图日志之后未禁止修改表定义
2025年6月23日 添加了label:sig/Community
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
Welcome To openGauss Community
Hey @TinyBag , 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: @superlchf, @hwworkholic, @shirley_zhengx, @quemingjian, @shenzheng4, @chendong76, @totaj, @congzhou2603, @chenxiaobin19, @ywzq1161327784, @libiao2024, @zhangfengzhi123, @wangfeihuo, @jemappellehc, @CarrotGo, @dodders, @muyulinzhong .


2025年6月23日 添加了label:opengauss-cla/yes
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
CLA Signature Pass
@TinyBag, thanks for your pull request. All authors of the commits have signed the CLA. 👍


2025年6月23日 添加了label:codecheck-running
2025年6月23日 添加了label:ci-pipeline-running
2025年6月23日 添加了label:lite-ci-running
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
2025年6月23日 添加了label:sca-success
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
2025年6月23日 添加了label:codecheck-success
2025年6月23日 删除了label:codecheck-running
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
| Check Name | Build Result | Build Details |
|---|---|---|
| openGauss_server_pr | ➖ ABORTED | #21556 |


TinyBag
2025年6月23日 评论:
2025年6月23日 评论:
/retest


2025年6月23日 删除了label:ci-pipeline-running
2025年6月23日 添加了label:ci-pipeline-success
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
| Check Name | Build Result | Build Details |
|---|---|---|
| openGauss_server_pr | ✅ Success | #21588 |


zhoucong<Okidoki>
2025年6月23日 评论:
2025年6月23日 评论:
/lgtm
/approve


2025年6月23日 添加了label:lgtm-congzhou2603
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
2025年6月23日 添加了label:approved
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
shirley_zhengx
2025年6月23日 评论:
2025年6月23日 评论:
/lgtm


2025年6月23日 添加了label:lgtm-shirley_zhengx
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
opengauss_bot
2025年6月23日 评论:
2025年6月23日 评论:
| Check Name | Build Result | Build Details |
|---|---|---|
| openGauss_server_pr | ✅ Success | #21591 |


l1azzzy
2025年6月24日 评论:
2025年6月24日 评论:
/retest-lite


2025年6月24日 删除了label:lite-ci-running
2025年6月24日 添加了label:lite-ci-success
2025年6月24日 合入了pull request,合并节点 SHA:4dd917ceede7c4c05258d384a26ff577dcb04c30
2025年6月24日 删除了label:codecheck-success
opengauss_bot
2025年6月24日 评论:
2025年6月24日 评论:
opengauss_bot
2025年6月24日 评论:
2025年6月24日 评论:
TinyBag
2025年8月26日 评论:
2025年8月26日 评论:
【标题】只有mlog没有mview同样维护mlog
【实现内容】:relation cache上的rd_mlogoid标记,改为不区分是否有增量物化视图引用,而是恢复一开始的含义,即是否有物化视图日志。
【根因分析】:实现手动创建删除mlog之后,会出现只有mlog没有mview的场景,这种场景下mlog记录的内容实际上是不能用于增量刷新的,一开始为了避免用户创建了mlog又忘记删除,导致维护mlog影响性能,所以把rd_mlogoid标记改为只有在同时有mlog且有增量mview的情况下才为有效值。导致在本issue场景下存在mlog,但是检查rd_mlogoid又没有检查到的问题。实际上A库是没有不维护mlog的设计的,为了保持兼容性,避免引入不必要的复杂度,改为只要有mlog就维护。
【实现方案】:relation cache上的rd_mlogoid标记,改为不区分是否有增量物化视图引用,而是恢复一开始的含义,即是否有物化视图日志。
【关联需求或issue】:https://gitcode.com/opengauss/openGauss-server/issues/6620
【开发自验报告】:
已添加
需要修改
不需要
不需要
不需要
无
【其他说明】: