postgresql - MERGE 语句的锁定级别

有谁知道 PostgreSQL 上的锁级别(行、表)是多少 MERGE命令?我试图深入研究文档,但找不到任何可以理清思路的内容。如果有人有线索并愿意分享,我们将不胜感激。

最佳答案

来自manual :

ROW EXCLUSIVE Conflicts with the SHARE, SHARE ROW EXCLUSIVE, EXCLUSIVE, and ACCESS EXCLUSIVE lock modes.

The commands UPDATE, DELETE, INSERT, and MERGE acquire this lock mode on the target table (in addition to ACCESS SHARE locks on any other referenced tables). In general, this lock mode will be acquired by any command that modifies data in a table.

https://stackoverflow.com/questions/72437679/

相关文章:

typescript - 一起使用 Typescript 可变元组类型和 Javascript Sp

f# - 使用 Foq 模拟 Microsoft.Extensions.Logging.ILogge

rust - "the size for values of type cannot be know

reactjs - RTK 查询维持 `isLoading` 缓存失效后自动重新获取

unity3d - 拾取的物体移动时晃动

node.js - Pug - 包括带有 "include"关键字的 C 代码

python - 通过多进程生成的对象标识

node.js - 在 whatsapp 云 API 的模板标题中添加示例图像

python - 如何获取包含受 Python 深度限制的特定文件的所有目录?

flutter - 如何在 ListView.builder flutter 中正确使用 findC