【发布时间】:2020-07-01 13:44:29
【问题描述】:
在我的生产服务器上,有时备份失败并显示以下消息。此备份安排在备用节点上。 (在我的环境中配置了流复制。)在此备份期间没有运行任何进程。这是 Ubuntu 机器上的每晚 cron 作业。
2020-07-01 05:21:07.567 CEST [27925] postgres@DBname LOG: process 27925 still waiting for AccessShareLock on relation 2610 of database 17948 after 1000.096 ms
2020-07-01 05:21:07.567 CEST [27925] postgres@DBname DETAIL: Process holding the lock: 25802. Wait queue: 1559, 27925.
2020-07-01 05:21:17.120 CEST [25802] postgres@DBname ERROR: canceling statement due to conflict with recovery
2020-07-01 05:21:17.120 CEST [25802] postgres@DBname DETAIL: User was holding a relation lock for too long.
2020-07-01 05:21:17.120 CEST [25802] postgres@DBname STATEMENT: COPY public.tablename(id, col1,col2,col3, geom) TO stdout;
2020-07-01 05:21:17.127 CEST [27925] postgres@DBname LOG: process 27925 acquired AccessShareLock on relation 2610 of database 17948 after 10560.447 ms
关系 2610 是 pg_index。我尝试锁定此表并重现该表,但没有收到任何错误。
有人遇到过这个问题吗?感谢任何提示/修复。
【问题讨论】:
-
你运行的是什么版本?
标签: postgresql