| От | Tom Lane |
|---|---|
| Тема | Re: Bug #734: Rename column make views go bad |
| Дата | |
| Msg-id | 14782.1028827804@sss.pgh.pa.us обсуждение |
| Ответ на | Bug #734: Rename column make views go bad (pgsql-bugs@postgresql.org) |
| Список | pgsql-bugs |
pgsql-bugs@postgresql.org writes:
> When I rename a column postgres seems to update the views. Or at least
> the views works after the update. But if I dump the database (with
> pg_dump) then I can not restore it since the dumped views still refer
> to the old column name.
Although you only see the effects in pg_dump, this is actually a backend
problem (pg_dump depends on pg_get_viewdef(), which wasn't being careful
about this situation).
I've committed fixes into current CVS for this, but I don't think there
will be a back-patch for 7.2 ... the risk of breaking other cases is
too high to put it out without a normal beta-test cycle.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера