| От | Tomasz Myrta |
|---|---|
| Тема | Re: recreating table and foreign keys |
| Дата | |
| Msg-id | 20021203202954.M11351@klaster.net обсуждение исходный текст |
| Ответ на | Re: recreating table and foreign keys (Stephan Szabo <sszabo@megazone23.bigpanda.com>) |
| Ответы |
Re: recreating table and foreign keys
|
| Список | pgsql-sql |
> You'll probably end up using ALTER TABLE ADD CONSTRAINT to add the > constraints to the new master_table. It's possible that you might > be able to hack something with the system tables, but that sounds > dangerous. Or you can upgrade to 7.3 which lets you run alter table > drop column. :) If it is the only way, I can create >20 "alter table add constraint...", but is rather a boring finish :-( I found, I can dump database - data only. After this I can create all tables and restore data. Any other solution? Tomasz Myrta
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера