diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-09-22 23:56:46 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-09-22 23:56:46 +0000 |
commit | 0135cd88bd73c5fcebad610cab3e6e8fffc67d5e (patch) | |
tree | 02ad4cfb8d507908d2738817157c247b19c4db97 | |
parent | c79671bdbba0c8e347e26aa96bd05f7e0caf9e56 (diff) | |
download | postgresql-0135cd88bd73c5fcebad610cab3e6e8fffc67d5e.tar.gz postgresql-0135cd88bd73c5fcebad610cab3e6e8fffc67d5e.zip |
Add warning about DOMAINs.
David Fetter
-rw-r--r-- | doc/src/sgml/ref/create_domain.sgml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/src/sgml/ref/create_domain.sgml b/doc/src/sgml/ref/create_domain.sgml index 1c3eb357c04..bddfb572875 100644 --- a/doc/src/sgml/ref/create_domain.sgml +++ b/doc/src/sgml/ref/create_domain.sgml @@ -1,5 +1,5 @@ <!-- -$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 --> @@ -48,10 +48,13 @@ where <replaceable class="PARAMETER">constraint</replaceable> is: </para> <para> - Domains are useful for abstracting common fields between tables into - a single location for maintenance. For example, an email address column may be used - in several tables, all with the same properties. Define a domain and - use that rather than setting up each table's constraints individually. + Domains are useful for abstracting common fields between tables + into a single location for maintenance. For example, an email address + column may be used in several tables, all with the same properties. + 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> </refsect1> |