数据库版本:
305
问题现象:
数据库日志中toast表vacuum异常
相关参数:
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;"查询表的过期元组信息,发现该字段没有被更新。
目前暂无更多排查思路,需社区协助处理。
登录 后才可以发表评论