| От | Michael Fuhr |
|---|---|
| Тема | Re: Inserting data in other db |
| Дата | |
| Msg-id | 20050906131623.GA5256@winnie.fuhr.org обсуждение |
| Ответ на | Inserting data in other db ("Toff" <kristoff.six@telenet.be>) |
| Список | pgsql-novice |
On Thu, Sep 01, 2005 at 01:09:55PM +0000, Toff wrote: > I want to insert data from a table in a database to a table of another > database when the data is added in the first table, thus using a trigger on > the 1st table. > So, is there some way to acces a 2nd database within functions of the 1st > database? Or do I have to write an extrenal application to do the > datatransfer? You could use contrib/dblink or a function written in a procedural language like PL/Perl that can access external data sources, but beware that you won't get transactional semantics. If you roll back the transaction in the first database, you don't have a way to propogate that rollback to the second database. -- Michael Fuhr
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера