Search Postgresql Archives

I need help creating a composite type with some sort of constraints.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I can create one or more domains, and use those to create the
composite type from. But each domain can only be constrained in its
own value, I can't constrain element #1's value based on what element
#2's value is.

If I create a domain from a composite, it will complain with a "ERROR:
cdt.instant_message is not a valid base type for a domain" error.

I can't create a trigger for a composite either (technically it's not
a table, but I was hoping it might be treated as one internally).

Is there any way to do this? Are there any plans to change or expand
this functionality in the future?

Thanks,
John O.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux