Re: duplicate table in two databases

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: duplicate table in two databases
Дата
Msg-id 412069DB.107@archonet.com
обсуждение исходный текст
Ответ на duplicate table in two databases  (Fabio Ferrero <nutella@inwind.it>)
Список pgsql-sql
Fabio Ferrero wrote:
> 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?

You might want to look in the contrib/ folder of the source distribution 
(or the equivalent in your packaged installation for "dblink". Haven't 
used it myself, but it can certainly do what you want here.

--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: Kaloyan Iliev Iliev
Дата:
Сообщение: Inheriting text[] field
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: CROSS-TAB query help? I have read it cant be done in one