已合并
只有mlog没有mview同样维护mlog #7965
TinyBag创建于 2025年6月23日
只有mlog没有mview同样维护mlog #7965
已合并
TinyBag创建于 2025年6月23日
TinyBag
TinyBag
2025年6月23日

【标题】只有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

【开发自验报告】:

  1. 请附上自验结果(内容或者截图)
    image.png
  2. 是否可以添加fastcheck测试用例,如是,请补充fastcheck用例
    已添加
  3. 是否涉及资料修改,如是,在docs仓库补充资料
    需要修改
  4. 是否考虑升级场景(系统表修改、日志持久化以及修改执行态数据格式)
    不需要
  5. 是否考虑在线扩容等扩展场景
    不需要
  6. 是否考虑异常场景/并发场景/前向兼容/性能场景
    不需要
  7. 是否对其他模块产生影响

【其他说明】:

likedislike
Pull Request已成功合入, 合并人@opengauss_bot
(感谢 TinyBag 的贡献)
TinyBagTinyBag
2025年6月23日 创建了 pull request,commit ab0ffb3d
TinyBagTinyBag
2025年6月23日 关联了issue:创建物化视图日志之后未禁止修改表定义
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:sig/Community
opengauss_bot
opengauss_bot成员
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 .

likedislike
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:opengauss-cla/yes
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:

CLA Signature Pass

@TinyBag, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:codecheck-running
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:ci-pipeline-running
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:lite-ci-running
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:

开源片段扫描

Check Name Build Details Check Result Check Detail
sca #20935 ✅ 通过 >>>
likedislike
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:sca-success
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:

静态检查

Check Name Build Details Check Result Check Detail
CodeCheck #49819 ✅ 通过 >>>
likedislike
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:codecheck-success
opengauss_botopengauss_bot成员
2025年6月23日 删除了label:codecheck-running
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:
Check Name Build Result Build Details
openGauss_server_pr ABORTED #21556
likedislike
TinyBag
TinyBag
2025年6月23日 评论:

/retest

likedislike
opengauss_botopengauss_bot成员
2025年6月23日 删除了label:ci-pipeline-running
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:ci-pipeline-success
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:
Check Name Build Result Build Details
openGauss_server_pr Success #21588
likedislike
zhoucong<Okidoki>
zhoucong<Okidoki>成员
2025年6月23日 评论:

/lgtm
/approve

likedislike
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:lgtm-congzhou2603
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:

Review Code Feedback

  • The label lgtm-congzhou2603 was added to this pull request. It means that congzhou2603 reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:approved
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:

Review Code Feedback

  • The label approved was added to this pull request. It means that congzhou2603 reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
shirley_zhengx
shirley_zhengx成员
2025年6月23日 评论:

/lgtm

likedislike
opengauss_botopengauss_bot成员
2025年6月23日 添加了label:lgtm-shirley_zhengx
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:

Review Code Feedback

  • The label lgtm-shirley_zhengx was added to this pull request. It means that shirley_zhengx reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
opengauss_bot
opengauss_bot成员
2025年6月23日 评论:
Check Name Build Result Build Details
openGauss_server_pr Success #21591
likedislike
l1azzzy
l1azzzy成员
2025年6月24日 评论:

/retest-lite

likedislike
opengauss_botopengauss_bot成员
2025年6月24日 删除了label:lite-ci-running
opengauss_botopengauss_bot成员
2025年6月24日 添加了label:lite-ci-success
opengauss_botopengauss_bot成员
2025年6月24日 合入了pull request,合并节点 SHA:4dd917ceede7c4c05258d384a26ff577dcb04c30
opengauss_botopengauss_bot成员
2025年6月24日 删除了label:codecheck-success
opengauss_bot
opengauss_bot成员
2025年6月24日 评论:

开源片段扫描

Check Name Build Details Check Result Check Detail
sca #21026 ✅ 通过 >>>
likedislike
opengauss_bot
opengauss_bot成员
2025年6月24日 评论:

静态检查

Check Name Build Details Check Result Check Detail
CodeCheck #49980 ✅ 通过 >>>
likedislike
TinyBag
TinyBag
2025年8月26日 评论: