Re: How to union tables and have a field with UNIQUE constraint?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: How to union tables and have a field with UNIQUE constraint?
Дата
Msg-id 20020111165115.D97125-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: How to union tables and have a field with UNIQUE constraint?  (Katona Gabor <katonag@dragon.klte.hu>)
Список pgsql-sql
On Fri, 4 Jan 2002, Katona Gabor wrote:

>
>
> > I would argue that this should be disallowed, since it does not do
> > anything useful and can only mislead people into thinking that it
> > has some effect.
> >
> > Since triggers on a view won't do anything either, I don't see how one
> > could expect REFERENCES to a view to work.  The system ought to reject
> > all this stuff as unimplemented.
>
>   OK, I understand the problem with referencing a view and I changed my code
> to use CREATE TABLE AS instead of a view (the created table will change very
> rarely, so I'll update it then via a trigger). Is this way ok now and will
> work until the end of time :) ?

That doesn't sound like something that'll stop working, so you should be
safe.





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

Предыдущее
От: Frank Bax
Дата:
Сообщение: Re: Resources
Следующее
От: Murray Prior Hobbs
Дата:
Сообщение: triggered data change violation