Skip to content

Commit 459c77a

Browse files
Merge pull request #3641 from noborus/fix-3627-comment
ctidの説明の修正
2 parents d45c54d + 85b26f8 commit 459c77a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

doc/src/sgml/ref/delete.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,7 @@ DELETE FROM user_logs AS dl
464464
the query is repeatedly run, avoiding the problem of changed
465465
<structfield>ctid</structfield>s.
466466
-->
467-
この<structfield>ctid</structfield>の使い方が安全なのは、問い合わせを繰り返し実行する場合に限られます。
468-
それにより、変更された<structfield>ctid</structfield>による問題を回避できるからです。
467+
この<structfield>ctid</structfield>の使い方が安全なのは、問い合わせが繰り返し実行されるため、<structfield>ctid</structfield>が変更される問題を回避しているからです。
469468
</para>
470469
</refsect1>
471470

doc/src/sgml/ref/update.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ UPDATE work_item SET status = 'failed'
728728
rows were overlooked.
729729
-->
730730
更新する行がなくなるまで、このコマンドを繰り返すことが必要です。
731-
(この<structfield>ctid</structfield>の使い方が安全なのは、問い合わせを繰り返し実行する場合に限られます。それにより、変更された<structfield>ctid</structfield>による問題を回避できるからです。)
731+
(この<structfield>ctid</structfield>の使い方が安全なのは、問い合わせが繰り返し実行されるため、<structfield>ctid</structfield>が変更される問題を回避しているからです。)
732732
<literal>ORDER BY</literal>句を使用すると、コマンドは更新する行を優先順位付けできます。
733733
また、他の更新操作が同じ順序を使用する場合、それらによるデッドロックを防ぐことができます。
734734
ロック競合が懸念される場合、<acronym>CTE</acronym>に<literal>SKIP LOCKED</literal>を追加して、複数のコマンドが同じ行を更新するのを防ぐことができます。

0 commit comments

Comments
 (0)