Re: pg_dump doesn't save altered column information for inherited columns
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pg_dump doesn't save altered column information for inherited columns |
| Дата | |
| Msg-id | 27042.1296576472@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pg_dump doesn't save altered column information for inherited columns (<depstein@alliedtesting.com>) |
| Список | pgsql-bugs |
<depstein@alliedtesting.com> writes:
> I noticed that when pg_dump saves SQL code for a table with inheritance, it does not save any information about
inheritedcolumns. This is fine when inherited columns do not undergo any modification, but when they do, that
informationis lost.
> Example:
> create table parent (id integer not null);
> create table child (value integer) inherits (parent);
> alter table child alter column id drop not null;
Actually, the bug here is that ALTER TABLE lets you do that. Dropping
an inherited constraint should be disallowed, and is disallowed for the
case of CHECK constraints. We haven't gotten around to enhancing the
NOT NULL infrastructure to detect that, but it's on the TODO list.
In the meantime, there's no point in modifying pg_dump to worry about
such cases.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера