duplicate table in two databases

Поиск
Список
Период
Сортировка
От Fabio Ferrero
Тема duplicate table in two databases
Дата
Msg-id 411B73D0.3080208@inwind.it
обсуждение исходный текст
Ответы Re: duplicate table in two databases  (Richard Huxton <dev@archonet.com>)
Список pgsql-sql
I use postgres 7.2.1 (debian woody) and PHP.

I've two databases (foo and bar for example) with the same table (ie. 
stamps).

It's possible with a single query transfer the data from the stamps 
table in db foo to the stamps table in db bar?

Or I need a row by row copy? Or maybe a dump on temp file?

(with one db and two tables with the same record I can use INSERT INTO 
foo SELECT * FROM bar).

Thanks.



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

Предыдущее
От: "Richard Hurst"
Дата:
Сообщение: Returning A Varchar From A Function
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Sending errors from psql to error file