Re: Table inheritance foreign key problem

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: Table inheritance foreign key problem
Дата
Msg-id AANLkTi=TkYu0Ja9N84X_PVv1BfAFtdfByuvw30M_ks=a@mail.gmail.com
обсуждение исходный текст
Ответ на Table inheritance foreign key problem  ("Andy Chambers" <achambers@mcna.net>)
Ответы Re: Table inheritance foreign key problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Tue, Dec 21, 2010 at 9:32 PM, Andy Chambers <achambers@mcna.net> wrote:
\
> create table guidebooks (
>  city check (city in (select name
>                         from cities)),
>  isbn text,
>  author text,
>  publisher text);

This is a nice idea.  They only problem is that PostggreSQL doesn't
support sub-selects in a tables check constraints:
http://www.postgresql.org/docs/9.0/interactive/sql-createtable.html


--
Regards,
Richard Broersma Jr.

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

Предыдущее
От: "Andy Chambers"
Дата:
Сообщение: Table inheritance foreign key problem
Следующее
От: "Neil D'Souza"
Дата:
Сообщение: Re: What Programs Do You Use For PG?