Skip to content

Commit d3accbb

Browse files
committed
Update mvcc.sgml
1 parent abd79e5 commit d3accbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgresql/doc/src/sgml/mvcc.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,8 +2246,8 @@ SELECT pg_advisory_lock(q.id) FROM
22462246
</para>
22472247
-->
22482248
<para>
2249-
从其它环境装换时还要注意的事实是:<command>SELECT FOR UPDATE</command> 不能保证并发事务不更新或删除已选择的行。
2250-
如果想在<productname>PostgreSQL</productname>中做到这,你必须实际更新这一行,即使没有值需要被修改。
2249+
从其它环境转换时还要注意的事实是:<command>SELECT FOR UPDATE</command> 不能保证并发事务不更新或删除已选择的行。
2250+
如果想在<productname>PostgreSQL</productname>中做到这一点,你必须实际更新这一行,即使没有值需要被修改。
22512251
<command>SELECT FOR UPDATE</command> <emphasis>暂时阻塞</emphasis>其它事务获得相同的锁,执行可能影响封锁行的<command>UPDATE</command>或<command>DELETE</command>命令,
22522252
但是一旦持有这个锁的事务提交或者回滚,被阻塞的事务将继续做冲突的操作,
22532253
除非当锁被持有的时候,实际执行了这一行的<command>UPDATE</command>。

0 commit comments

Comments
 (0)