summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-05-11 20:17:15 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-05-11 20:17:15 +0000
commitd8326119c8885e938eff79e22fce6c1cb19379f4 (patch)
tree7c482ccb7b0d0aec7551585347a422e495a67d4e /doc/src
parent3b6afdd7f9d38c33f21e5211ccbbcd3514312372 (diff)
Fix my oversight in enabling domains-of-domains: ALTER DOMAIN ADD CONSTRAINT
needs to check the new constraint against columns of derived domains too. Also, make it error out if the domain to be modified is used within any composite-type columns. Eventually we should support that case, but it seems a bit painful, and not suitable for a back-patch. For the moment just let the user know we can't do it. Backpatch to 8.2, which is the only released version that allows nested domains. Possibly the other part should be back-patched further.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/alter_domain.sgml15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/alter_domain.sgml b/doc/src/sgml/ref/alter_domain.sgml
index 1111da12f8e..da024558f48 100644
--- a/doc/src/sgml/ref/alter_domain.sgml
+++ b/doc/src/sgml/ref/alter_domain.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.21 2007/01/31 23:26:02 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.22 2007/05/11 20:16:32 tgl Exp $
PostgreSQL documentation
-->
@@ -198,6 +198,19 @@ ALTER DOMAIN <replaceable class="PARAMETER">name</replaceable>
</refsect1>
<refsect1>
+ <title>Notes</title>
+
+ <para>
+ Currently, <command>ALTER DOMAIN ADD CONSTRAINT</> and
+ <command>ALTER DOMAIN SET NOT NULL</> will fail if the named domain or
+ any derived domain is used within a composite-type column of any
+ table in the database. They should eventually be improved to be
+ able to verify the new constraint for such nested columns.
+ </para>
+
+ </refsect1>
+
+ <refsect1>
<title>Examples</title>
<para>