| От | Scott Marlowe |
|---|---|
| Тема | Re: using pg_dump to dump only a schema? |
| Дата | |
| Msg-id | 1117573291.20484.44.camel@state.g2switchworks.com обсуждение исходный текст |
| Ответ на | using pg_dump to dump only a schema? (thomas <tr75@gmx.net>) |
| Список | pgsql-general |
On Tue, 2005-05-31 at 15:03, thomas wrote: > hi there, > > i'm wondering, if i can use pg_dump to move only one schema of a db from > the one server, intoan other schema on the other server? > > for example: > > Server A: > Database: xyz_test > Schema: 123 > > Server B: > Database: xyz_prod > Schema: 999 > > > The tablenames and so on are equal. and i wan't to transfer the data > with it. is it possible? and how? today i played a little bit with it, > but could not find a proper way with it. the description in the docu > didn't helped me either. any solution anyone? To dump a certain schema, use the -n switch, then edit / sed the output to change the schemaname to something else and load it back into the other database with psql.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера