Re: How to union tables and have a field with UNIQUE constraint?
В списке pgsql-sql по дате отправления:
| От | Katona Gabor |
|---|---|
| Тема | Re: How to union tables and have a field with UNIQUE constraint? |
| Дата | |
| Msg-id | Pine.GSO.4.10.10201040857160.4534-100000@dragon обсуждение |
| Ответ на | Re: How to union tables and have a field with UNIQUE constraint? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: How to union tables and have a field with UNIQUE constraint?
|
| Список | pgsql-sql |
> 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 :) ? And thanks for the answers.
Gabor Katona
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера