| От | Glen Parker |
|---|---|
| Тема | Postgres dump utility |
| Дата | |
| Msg-id | 00b001c402ea$786cb710$0b01a8c0@saturn обсуждение исходный текст |
| Ответы |
Re: Postgres dump utility
|
| Список | pgsql-general |
Does anyone know of a way to get the output that pg_dump provides, but split in pieces? What I would like is one file with just the schema, one file with just the data, and one file with just indexes. To restore the data I would then: psql DB < schema.sql psql DB < data.sql psql DB < indexes.sql This would make large schema changes much easier since you wouldn't have to wade through the GB's of data to find the table definition statements. Doing two dumps, one for schema and one for data, *almost* does the trick, but because the indexes will then be created before copying the data in, the restore operation takes eons :-( Anyone? Thx, Glen Parker
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера