Skip to content

Commit 0135cd8

Browse files
committed
Add warning about DOMAINs.
David Fetter
1 parent c79671b commit 0135cd8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

doc/src/sgml/ref/create_domain.sgml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.22 2005/05/02 01:52:50 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.23 2005/09/22 23:56:46 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -48,10 +48,13 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
4848
</para>
4949

5050
<para>
51-
Domains are useful for abstracting common fields between tables into
52-
a single location for maintenance. For example, an email address column may be used
53-
in several tables, all with the same properties. Define a domain and
54-
use that rather than setting up each table's constraints individually.
51+
Domains are useful for abstracting common fields between tables
52+
into a single location for maintenance. For example, an email address
53+
column may be used in several tables, all with the same properties.
54+
Define a domain and use that rather than setting up each table's
55+
constraints individually. <note>Keep in mind also that declaring a
56+
function result value as a domain is pretty dangerous, because none of
57+
the PLs enforce domain constraints on their results.</note>
5558
</para>
5659
</refsect1>
5760

0 commit comments

Comments
 (0)