Skip to content

Commit 9200318

Browse files
committed
Add documentaiotn mention that constraint names can be sentences that
can convey information to clients on constraint violation.
1 parent b06e6f1 commit 9200318

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/src/sgml/ref/create_table.sgml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.96 2005/11/01 21:09:50 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.97 2006/01/16 19:50:03 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -293,7 +293,10 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
293293
<term><literal>CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable></literal></term>
294294
<listitem>
295295
<para>
296-
An optional name for a column or table constraint. If not specified,
296+
An optional name for a column or table constraint. If the
297+
constraint is violated, the constraint name is present in error messages,
298+
so constraint names like "col must be positive" can be used to communicate
299+
helpful constraint information to client applications. If not specified,
297300
the system generates a name.
298301
</para>
299302
</listitem>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy