OSDN Git Service

> It doesn't say that only the listed commands acquire ACCESS EXCLUSIVE,
authorBruce Momjian <bruce@momjian.us>
Sat, 4 Mar 2006 04:41:36 +0000 (04:41 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 4 Mar 2006 04:41:36 +0000 (04:41 +0000)
> just that certain commands do.  TRUNCATE isn't shown.

Patch against HEAD to add TRUNCATE to the list of commands that aquire
ACCESS EXCLUSIVE.

Jim C. Nasby, Sr.

doc/src/sgml/mvcc.sgml

index 9e2adc4..f6aa4cb 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.53 2005/11/07 17:36:44 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.54 2006/03/04 04:41:36 momjian Exp $
 -->
 
  <chapter id="mvcc">
@@ -710,7 +710,7 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
 
        <para>
         Acquired by the <command>ALTER TABLE</command>, <command>DROP
-        TABLE</command>, <command>REINDEX</command>,
+        TABLE</command>, <command>TRUNCATE</command>, <command>REINDEX</command>,
         <command>CLUSTER</command>, and <command>VACUUM FULL</command>
         commands.  This is also the default lock mode for <command>LOCK
         TABLE</command> statements that do not specify a mode explicitly.