Re: multi-database

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: multi-database
Дата
Msg-id 3D947491.29474.382848@localhost
обсуждение исходный текст
Ответ на multi-database  ("mourad_dhambri" <mourad_dhambri@voila.fr>)
Список pgsql-general
On 27 Sep 2002 at 10:34, mourad_dhambri wrote:

> what I want is to delete data from another database db2 and to insert data from my database db1 to db2.
> I don't think that dblink can do so. Is there another way ?

Why not? Just create a view for table(s) in db1 in db2. And do following on db2

delete from table1;insert into table1 select * from remoteview;

dblink documentation has example as how to create such a remote view..

HTH

Bye
 Shridhar

--
Captain Penny's Law:    You can fool all of the people some of the time, and    some
of the people all of the time, but you Can't Fool Mom.


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: query speed depends on lifetime of frozen db?
Следующее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: query speed depends on lifetime of frozen db?