Commit a92b5f96 authored by Robert Haas's avatar Robert Haas

doc: Use <literal> and all-caps for READ COMMITTED isolation level.

The documentation overall is not entirely consistent about how we do
this, but this is consistent with other usages within lock.sgml.

Etsuro Fujita
parent e246b3d6
...@@ -51,9 +51,9 @@ LOCK [ TABLE ] [ ONLY ] <replaceable class="PARAMETER">name</replaceable> [ * ] ...@@ -51,9 +51,9 @@ LOCK [ TABLE ] [ ONLY ] <replaceable class="PARAMETER">name</replaceable> [ * ]
restrictive lock mode possible. <command>LOCK TABLE</command> restrictive lock mode possible. <command>LOCK TABLE</command>
provides for cases when you might need more restrictive locking. provides for cases when you might need more restrictive locking.
For example, suppose an application runs a transaction at the For example, suppose an application runs a transaction at the
Read Committed isolation level and needs to ensure that data in a <literal>READ COMMITTED</> isolation level and needs to ensure that
table remains stable for the duration of the transaction. To data in a table remains stable for the duration of the transaction.
achieve this you could obtain <literal>SHARE</> lock mode over the To achieve this you could obtain <literal>SHARE</> lock mode over the
table before querying. This will prevent concurrent data changes table before querying. This will prevent concurrent data changes
and ensure subsequent reads of the table see a stable view of and ensure subsequent reads of the table see a stable view of
committed data, because <literal>SHARE</> lock mode conflicts with committed data, because <literal>SHARE</> lock mode conflicts with
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment