Re: Transactions through dblink_exec()

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Transactions through dblink_exec()
Дата
Msg-id 3DA91642.2000202@joeconway.com
обсуждение исходный текст
Ответ на Transactions through dblink_exec()  (Masaru Sugawara <rk73@sea.plala.or.jp>)
Список pgsql-hackers
Mike Mascari wrote:
> How can dblink() possibly be used safely for non-readonly transactions 
> without a full implementation of a two-phase commit protocol? What 
> happens when the remote server issues the COMMIT and then the local 
> server crashes?
> 

It can't be used safely if you're trying to ensure a distributed transaction 
either fails or commits. At least I can't think of a way without two-phase 
commits implemented.

But depending on your scenario, just being sure that the remote transaction 
fails or succeeds as a unit may be all you care about.

Joe




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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Transactions through dblink_exec()
Следующее
От: Barry Lind
Дата:
Сообщение: experiences with autocommit functionality in 7.3