public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: [email protected] <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: Extend phrase by an example
Date: Sun, 9 Sep 2018 08:11:05 -0700
Message-ID: <CAKFQuwbEp6j26OBWT8NbLt0e_f_o+bRoczwHChdv=7sr_AKABw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Saturday, September 8, 2018, PG Doc comments form <[email protected]>
wrote:
> the constraints shown in the table
> definition do not apply to values of the composite type outside the table.
> (A partial workaround is to use domain types as members of composite
> types.)
>
> The part:
> >(A partial workaround is to use domain types as members of composite
> types.)
>
> From here I can understand that workaround is possible.
>
> But what is workaround? and why it is partial?
> Would be great to have this description.
>
The main thing is that some constraints are implemented via triggers and
those can only be attached to actual tables. So in the example the
REFERENCES constraint can only be used on the original table records and
can never applied to a standalone value of that type.
David J.
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Extend phrase by an example
In-Reply-To: <CAKFQuwbEp6j26OBWT8NbLt0e_f_o+bRoczwHChdv=7sr_AKABw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox