Re: Extend phrase by an example

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Extend phrase by an example
Дата
Msg-id CAKFQuwbEp6j26OBWT8NbLt0e_f_o+bRoczwHChdv=7sr_AKABw@mail.gmail.com
обсуждение исходный текст
Ответ на Extend phrase by an example  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On Saturday, September 8, 2018, PG Doc comments form <noreply@postgresql.org> 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.

В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Extend example of JOIN results for completeness
Следующее
От: PG Doc comments form
Дата:
Сообщение: please inform data_directory