| От | Joshua Moore-Oliva |
|---|---|
| Тема | Re: copying between Postgres databases |
| Дата | |
| Msg-id | 200303170439.01797.josh@chatgris.com обсуждение исходный текст |
| Ответ на | copying between Postgres databases (javier garcia - CEBAS <rn001@cebas.csic.es>) |
| Список | pgsql-general |
On March 17, 2003 04:21 am, you wrote: > Hi; > I've got two questions: > > 1) What is the best way to copy a Postgres table in one database into > another Postgres database? Is it possible to copy the structure and the > data at the same time? I believe that you can use pg_dump to just dump out one table. > > 2) Is there a way to do a short of pg_dump and to use the resulting file as > input to another database, but preserving existing tables in this latter? You can also specify the output of pg_dump to be all SQL commands.. and then only execute the queries in the pg_dump that you want. I'm not a huge expert on pg_dump myself, but try man pg_dump it should answer a lot of questions for you. Josh.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера