summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2013-06-18 12:05:48 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2013-06-18 12:05:48 +0100
commitbe039d4b29be88a7f8b57d6353c81bced54d1b83 (patch)
tree464af457d65ef600ad8a02ace8098d7c9e85baf8 /doc/src
parent81bb2d23bdf8d0b102c5fb0abd0a5df6fd74aba9 (diff)
Fix docs on lock level for ALTER TABLE VALIDATE
ALTER TABLE .. VALIDATE CONSTRAINT previously gave incorrect details about lock levels and therefore incomplete reasons to use the option. Initial bug report and fix from Marko Tiikkaja Reworded by me to include comments by Kevin Grittner
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/alter_table.sgml10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml
index 069e500304f..4e082eaa637 100644
--- a/doc/src/sgml/ref/alter_table.sgml
+++ b/doc/src/sgml/ref/alter_table.sgml
@@ -312,9 +312,13 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
as <literal>NOT VALID</literal>, by scanning the table to ensure there
are no unmatched rows. Nothing happens if the constraint is
already marked valid.
- The value of separating validation from initial creation of the
- constraint is that validation requires a lesser lock on the table
- than constraint creation does.
+ </para>
+ <para>
+ Validation can be a long process on larger tables and currently requires
+ an <literal>ACCESS EXCLUSIVE</literal> lock. The value of separating
+ validation from initial creation is that you can defer validation to less
+ busy times, or can be used to give additional time to correct pre-existing
+ errors while preventing new errors.
</para>
</listitem>
</varlistentry>