Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions doc/src/sgml/ref/delete.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,7 @@ DELETE FROM user_logs AS dl
the query is repeatedly run, avoiding the problem of changed
<structfield>ctid</structfield>s.
-->
この<structfield>ctid</structfield>の使い方が安全なのは、問い合わせを繰り返し実行する場合に限られます。
それにより、変更された<structfield>ctid</structfield>による問題を回避できるからです。
この<structfield>ctid</structfield>の使い方が安全なのは、問い合わせが繰り返し実行されるため、<structfield>ctid</structfield>が変更される問題を回避しているからです。
</para>
</refsect1>

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