Re: Is DBLINK transactional

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Is DBLINK transactional
Дата
Msg-id 4B9B80C9.4010004@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: Is DBLINK transactional  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: Is DBLINK transactional
Список pgsql-performance
On 13/03/2010 5:54 AM, Jeff Davis wrote:
> On Fri, 2010-03-12 at 12:07 -0500, Merlin Moncure wrote:
>> of course.  You can always explicitly open a transaction on the remote
>> side over dblink, do work, and commit it at the last possible moment.
>> Your transactions aren't perfectly synchronized...if you crash in the
>> precise moment between committing the remote and the local you can get
>> in trouble.  The chances of this are extremely remote though.
>
> If you want a better guarantee than that, consider using 2PC.

Translation in case you don't know: 2PC = two phase commit.

Note that you have to monitor "lost" transactions that were prepared for
commit then abandoned by the controlling app and periodically get rid of
them or you'll start having issues.

> The problem with things that are "extremely remote" possibilities are
> that they tend to be less remote than we expect ;)

... and they know just when they can happen despite all the odds to
maximise the pain and chaos caused.

--
Craig Ringer

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Is DBLINK transactional
Следующее
От: "fkater@googlemail.com"
Дата:
Сообщение: Deleting bytea, autovacuum, and 8.2/8.4 differences