| От | Chris Dunlop |
|---|---|
| Тема | Problem with dump/restore and inheritance |
| Дата | |
| Msg-id | 20060222074400.GA11565@onthe.net.au обсуждение |
| Ответы |
Re: Problem with dump/restore and inheritance
|
| Список | pgsql-bugs |
G'day all, PG version: 8.1.0 (also 7.4.9) OS: Linux (debian/testing) Restoring a database with inherited tables can result in an incorrect schema (and therefore inability to restore data). E.g. using the script below, the 'bar.f1' column in the 'new' database ends up with a 'not null' constraint that isn't present in the 'orig' database. Cheers, Chris. ---------------------------------------------------------------------- #!/bin/sh createdb orig createdb new psql orig <<END create table foo (f1 integer not null); create table bar () inherits(foo); alter table bar alter column f1 drop not null; END pg_dump orig | psql new ----------------------------------------------------------------------
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера