|
1 |
| -<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/set_transaction.sgml,v 1.17 2003/09/11 21:42:20 momjian Exp $ --> |
| 1 | +<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/set_transaction.sgml,v 1.18 2003/11/06 22:08:14 petere Exp $ --> |
2 | 2 | <refentry id="SQL-SET-TRANSACTION">
|
3 | 3 | <refmeta>
|
4 | 4 | <refentrytitle id="SQL-SET-TRANSACTION-TITLE">SET TRANSACTION</refentrytitle>
|
|
17 | 17 | <refsynopsisdiv>
|
18 | 18 | <synopsis>
|
19 | 19 | SET TRANSACTION
|
20 |
| - [ ISOLATION LEVEL { READ COMMITTED | SERIALIZABLE } ] [ READ WRITE | READ ONLY ] |
| 20 | + [ ISOLATION LEVEL { READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SERIALIZABLE } ] |
| 21 | + [ READ WRITE | READ ONLY ] |
| 22 | + |
21 | 23 | SET SESSION CHARACTERISTICS AS TRANSACTION
|
22 |
| - [ ISOLATION LEVEL { READ COMMITTED | SERIALIZABLE } ] [ READ WRITE | READ ONLY ] |
| 24 | + [ ISOLATION LEVEL { READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SERIALIZABLE } ] |
| 25 | + [ READ WRITE | READ ONLY ] |
23 | 26 | </synopsis>
|
24 | 27 | </refsynopsisdiv>
|
25 | 28 |
|
@@ -76,8 +79,11 @@ SET SESSION CHARACTERISTICS AS TRANSACTION
|
76 | 79 | </varlistentry>
|
77 | 80 | </variablelist>
|
78 | 81 |
|
79 |
| - The transaction isolation level cannot be set after the first query |
80 |
| - or data-modification statement (<command>SELECT</command>, |
| 82 | + The level <literal>READ UNCOMMITTED</literal> is mapped to |
| 83 | + <literal>READ COMMITTED</literal>, the level <literal>REPEATABLE |
| 84 | + READ</literal> is mapped to <literal>SERIALIZABLE</literal>, The |
| 85 | + transaction isolation level cannot be set after the first query or |
| 86 | + data-modification statement (<command>SELECT</command>, |
81 | 87 | <command>INSERT</command>, <command>DELETE</command>,
|
82 | 88 | <command>UPDATE</command>, <command>FETCH</command>,
|
83 | 89 | <command>COPY</command>) of a transaction has been executed. See
|
@@ -122,13 +128,12 @@ SET default_transaction_isolation = '<replaceable>value</replaceable>'
|
122 | 128 | <para>
|
123 | 129 | Both commands are defined in the <acronym>SQL</acronym> standard.
|
124 | 130 | <literal>SERIALIZABLE</literal> is the default transaction
|
125 |
| - isolation level in the standard; in <productname>PostgreSQL</productname> the default is |
126 |
| - ordinarily <literal>READ COMMITTED</literal>, but you can change it as |
127 |
| - described above. <productname>PostgreSQL</productname> does not |
128 |
| - provide the isolation levels <literal>READ UNCOMMITTED</literal> |
129 |
| - and <literal>REPEATABLE READ</literal>. Because of multiversion |
130 |
| - concurrency control, the <literal>SERIALIZABLE</literal> level is |
131 |
| - not truly serializable. See <xref linkend="mvcc"> for details. |
| 131 | + isolation level in the standard; in |
| 132 | + <productname>PostgreSQL</productname> the default is ordinarily |
| 133 | + <literal>READ COMMITTED</literal>, but you can change it as |
| 134 | + described above. Because of multiversion concurrency control, the |
| 135 | + <literal>SERIALIZABLE</literal> level is not truly |
| 136 | + serializable. See <xref linkend="mvcc"> for details. |
132 | 137 | </para>
|
133 | 138 |
|
134 | 139 | <para>
|
|
0 commit comments