Re: check constraint question

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: check constraint question
Дата
Msg-id 1396995677952-5799282.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: check constraint question  (CS_DBA <cs_dba@consistentstate.com>)
Список pgsql-general
Based on your first question a customer id itself is not a valid designator;
you have to specify (or link) in the group as well.

Not tested but should work:

FOREIGN KEY (template, group) REFERENCES customer (cust_id, group)

Depends on whether you want to allow cross-group associations if you need a
separate group template id.

David J.



--
View this message in context: http://postgresql.1045698.n5.nabble.com/check-constraint-question-tp5799252p5799282.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: CS_DBA
Дата:
Сообщение: Re: check constraint question
Следующее
От: David Johnston
Дата:
Сообщение: Re: create temp view from function inside plpgsql function.