398 Star 1.4K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

toast表清理异常【M】

待办的
缺陷
创建于  
2024-05-08 10:27

数据库版本:
305

问题现象:
数据库日志中toast表vacuum异常
输入图片说明

相关参数:
输入图片说明

评论 (6)

enmo_limengjie 创建了缺陷

Hey @enmo_limengjie, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss_bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

Hi @enmo_limengjie, please use the command /sig xxx to add a SIG label to this issue.
For example: /sig sqlengine or /sig storageengine or /sig om or /sig ai and so on.
You can find more SIG labels from Here.
If you have no idea about that, please contact with @xiangxinyong , @zhangxubo .

现场环境handle_toast_in_autovac参数设置为on,日志中,每一轮autovacuum都会对toast表进行处理,服务重启后恢复正常。正常情况下,autovacuum对一个表进行处理后,会更新该表的死亡元组等统计信息,下一轮autovacuum访问该表时,会根据统计信息判断是否需要对该表进行再次处理,但是现场环境每一轮autovacuum都对表进行了处理。本地偶然模拟出一次相同的场景:创建一个包含大字段的表tb,然后插入一些数据,保证该表对应的toast表也有数据插入,随后更新一部分数据,autovacuum_naptime设置为10s,然后发现每一轮autovacuum都对tb和tb对应的toast表进行了处理,但是日志显示没有死亡元组被清理掉。在异常期间通过"select n_dead_tup from pg_stat_all_tables;"查询表的过期元组信息,发现该字段没有被更新。
目前暂无更多排查思路,需社区协助处理。

随后更新一部分数据这一步,对toast表也更新了吗

我本地偶然模拟出来的那次每次更新的就是toast字段,会对toast表产生影响

王恬静 负责人设置为pengjiong
王恬静 关联项目设置为openGauss 3.0.0 community
王恬静 优先级设置为次要

vacuum相关。请 @陈栋 安排下

pengjiong 添加协作者pengjiong
pengjiong 负责人pengjiong 修改为陈栋
pengjiong 取消协作者pengjiong
陈栋 添加协作者陈栋
陈栋 负责人陈栋 修改为胡正超
陈栋 取消协作者陈栋

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
13084139 opengauss bot 1686829535
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server

搜索帮助