Re: Updatable Views - DEFAULT doesn't inherit from table???
В списке pgsql-general по дате отправления:
| От | Richard Huxton |
|---|---|
| Тема | Re: Updatable Views - DEFAULT doesn't inherit from table??? |
| Дата | |
| Msg-id | 49393224.7080301@archonet.com обсуждение исходный текст |
| Ответ на | Updatable Views - DEFAULT doesn't inherit from table??? (Csaba Együd <csegyud@gmail.com>) |
| Ответы |
Re: Updatable Views - DEFAULT doesn't inherit from table???
Re: Updatable Views - DEFAULT doesn't inherit from table??? |
| Список | pgsql-general |
Csaba Együd wrote: > Hi, > I have problems with inserting rows into an updatable view through it's > insert rule. [snip] > But in the table definition I defined DEFULT=(-1) for this field. What's > going wrong? Shouldn't it inherit these settings from the table? Maybe, but it doesn't (and I think I've seen someone arguing it shouldn't). You can manually apply constraints/defaults etc. to the view though. I can't recall if you do ALTER VIEW view_products_1 or ALTER TABLE view_products_1, but it's one of them. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера