环境
系统平台:N/A
版本:4.5.2,4.5.6
BUG/漏洞编码
用户需求申请流程-0020
症状
建立分区表test,多个事务的情况下,在A事务上对表test进行UPDATE,B事务对表test进行DELETE。此时再对A进行UPDATE,然后进行commit。这时会触发coredump,数据库宕机。
触发条件
开启2个psql,分别为A,B,A执行 begin;,B执行 begin;,B执行 update todeal set sendfile = ‘t’ where senduserguid = ‘test’;,A执行(会卡住) DELETE FROM todeal WHERE sendfile = ‘test’ AND senduserguid = ‘test’;,B执行 update todeal set sendfile = ‘test’ where senduserguid != ‘test’;,B执行 commit;,触发coredump
解决方案
临时方案: 无
永久方案:升级至安全版4.5.7可解决此问题