提交 0135cd88 编写于 作者: B Bruce Momjian

Add warning about DOMAINs.

David Fetter
上级 c79671bd
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.22 2005/05/02 01:52:50 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.23 2005/09/22 23:56:46 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -48,10 +48,13 @@ where <replaceable class="PARAMETER">constraint</replaceable> is: ...@@ -48,10 +48,13 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
</para> </para>
<para> <para>
Domains are useful for abstracting common fields between tables into Domains are useful for abstracting common fields between tables
a single location for maintenance. For example, an email address column may be used into a single location for maintenance. For example, an email address
in several tables, all with the same properties. Define a domain and column may be used in several tables, all with the same properties.
use that rather than setting up each table's constraints individually. Define a domain and use that rather than setting up each table's
constraints individually. <note>Keep in mind also that declaring a
function result value as a domain is pretty dangerous, because none of
the PLs enforce domain constraints on their results.</note>
</para> </para>
</refsect1> </refsect1>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册