Re: best method to copy data across databases

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: best method to copy data across databases
Дата
Msg-id 14059.1088777527@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: best method to copy data across databases  (reina_ga@hotmail.com (Tony Reina))
Список pgsql-sql
reina_ga@hotmail.com (Tony Reina) writes:
> If the 2 tables have different arrangements, then I'm not sure if
> there is a quick way. The safest way is probably to do a pg_dump
> --attribute-inserts.

In recent versions (definitely 7.4, don't remember about 7.3),
pg_dump will include a column list in its COPY commands, so a
plain pg_dump should work.  The way with COPY will be a good bit
faster than a pile of INSERT commands.
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: reina_ga@hotmail.com (Tony Reina)
Дата:
Сообщение: Re: best method to copy data across databases
Следующее
От: siganos@gmail.com (George Siganos)
Дата:
Сообщение: Re: Question about a CIDR based query