~aglenyoung/+junk/postgres-9.3-dtrace

« back to all changes in this revision

Viewing changes to doc/src/sgml/man7/ALTER_TABLE.7

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Christoph Berg, Martin Pitt
  • Date: 2013-06-26 15:13:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130626151332-p34yjpn0txbdsdzd
Tags: 9.3~beta2-1
[ Christoph Berg ]
* hurd-i386: Ignore testsuite failures so we have a working libpq5 (they
  don't implement semaphores so the server won't even start).
* Mark postgresql-9.3 as beta in the description, suggested by Joshua D.
  Drake.

[ Martin Pitt ]
* New upstream release 9.3 beta2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
'\" t
2
2
.\"     Title: ALTER TABLE
3
3
.\"    Author: The PostgreSQL Global Development Group
4
 
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
 
.\"      Date: 2013-05-06
6
 
.\"    Manual: PostgreSQL 9.3beta1 Documentation
7
 
.\"    Source: PostgreSQL 9.3beta1
 
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
 
5
.\"      Date: 2013
 
6
.\"    Manual: PostgreSQL 9.3beta2 Documentation
 
7
.\"    Source: PostgreSQL 9.3beta2
8
8
.\"  Language: English
9
9
.\"
10
 
.TH "ALTER TABLE" "7" "2013-05-06" "PostgreSQL 9.3beta1" "PostgreSQL 9.3beta1 Documentation"
 
10
.TH "ALTER TABLE" "7" "2013" "PostgreSQL 9.3beta2" "PostgreSQL 9.3beta2 Documentation"
11
11
.\" -----------------------------------------------------------------
12
12
.\" * Define some portability stuff
13
13
.\" -----------------------------------------------------------------
263
263
VALIDATE CONSTRAINT
264
264
.RS 4
265
265
This form validates a foreign key or check constraint that was previously created as
266
 
NOT VALID, by scanning the table to ensure there are no rows for which the constraint is not satisfied\&. 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\&.
 
266
NOT VALID, by scanning the table to ensure there are no rows for which the constraint is not satisfied\&. Nothing happens if the constraint is already marked valid\&.
 
267
.sp
 
268
Validation can be a long process on larger tables and currently requires an
 
269
ACCESS EXCLUSIVE
 
270
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\&.
267
271
.RE
268
272
.PP
269
273
DROP CONSTRAINT [ IF EXISTS ]