我的Postgres数据库在某些被审计的表RAW操纵后崩溃

发布于 2025-01-29 19:25:13 字数 274 浏览 2 评论 0原文

我收到此错误:

内部服务器错误

javax.persistence.optimisticlockexception:org.hibernate.exception.lockacquicitionException:无法提取结果集 ... 由于与恢复冲突而终止连接 详细信息:用户持有关系锁的时间太长。 ... javax.persistence.optimisticlockexception:org.hibernate.exception.lockacquicitionException:无法提取结果集

I get this error:

Internal Server Error

javax.persistence.OptimisticLockException: org.hibernate.exception.LockAcquisitionException: could not extract ResultSet
...
connection was terminated due to conflict with recovery
Detail: User was holding a relation lock for too long.
...
javax.persistence.OptimisticLockException: org.hibernate.exception.LockAcquisitionException: could not extract ResultSet

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不如归去 2025-02-05 19:25:13

You must have run something like DROP/ALTER TABLE, TRUUNCATE, LOCK, CLUSTER and similar commands that require an 访问独家锁定流程复制的表上的表上,或者自动驾驶在那里截断了一个表。这样的锁被复制,并与备用服务器上该表上运行的任何查询发生冲突。一旦max_standby_streaming_delay被超过,查询将被取消。

在这里 是一些背景信息。

You must have run something like DROP/ALTER TABLE, TRUUNCATE, LOCK, CLUSTER and similar commands that require an ACCESS EXCLUSIVE lock on the table on the streaming replication primary, or autovacuum truncated a table there. Such a lock is replicated and conflicts with any query running on that table on a standby server. Once max_standby_streaming_delay is exceeded, the query is canceled.

Here is some background information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文