|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.75 2010/05/03 15:35:30 alvherre Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.76 2010/07/28 05:22:24 sriggs Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="mvcc">
|
4 | 4 | <title>Concurrency Control</title>
|
@@ -532,7 +532,7 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
|
532 | 532 | most <productname>PostgreSQL</productname> commands automatically
|
533 | 533 | acquire locks of appropriate modes to ensure that referenced
|
534 | 534 | tables are not dropped or modified in incompatible ways while the
|
535 |
| - command executes. (For example, <command>ALTER TABLE</> cannot safely be |
| 535 | + command executes. (For example, <command>TRUNCATE</> cannot safely be |
536 | 536 | executed concurrently with other operations on the same table, so it
|
537 | 537 | obtains an exclusive lock on the table to enforce that.)
|
538 | 538 | </para>
|
@@ -695,8 +695,9 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
|
695 | 695 | </para>
|
696 | 696 |
|
697 | 697 | <para>
|
698 |
| - This lock mode is not automatically acquired by any |
699 |
| - <productname>PostgreSQL</productname> command. |
| 698 | + Acquired by <command>CREATE TRIGGER</command>, |
| 699 | + <command>CREATE RULE</command> (except for <literal>ON SELECT</> |
| 700 | + rules) and in some cases <command>ALTER TABLE</command>. |
700 | 701 | </para>
|
701 | 702 | </listitem>
|
702 | 703 | </varlistentry>
|
@@ -742,11 +743,12 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
|
742 | 743 | </para>
|
743 | 744 |
|
744 | 745 | <para>
|
745 |
| - Acquired by the <command>ALTER TABLE</command>, <command>DROP |
746 |
| - TABLE</command>, <command>TRUNCATE</command>, <command>REINDEX</command>, |
| 746 | + Acquired by the <command>DROP TABLE</command>, |
| 747 | + <command>TRUNCATE</command>, <command>REINDEX</command>, |
747 | 748 | <command>CLUSTER</command>, and <command>VACUUM FULL</command>
|
748 |
| - commands. This is also the default lock mode for <command>LOCK |
749 |
| - TABLE</command> statements that do not specify a mode explicitly. |
| 749 | + commands, as well as most variants of <command>ALTER TABLE</>. |
| 750 | + This is also the default lock mode for <command>LOCK TABLE</command> |
| 751 | + statements that do not specify a mode explicitly. |
750 | 752 | </para>
|
751 | 753 | </listitem>
|
752 | 754 | </varlistentry>
|
|
0 commit comments