Re: protocol change in 7.4

From: Maarten Boekhold <Maarten(dot)Boekhold(at)reuters(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: mascarm(at)mascari(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: protocol change in 7.4
Date: 2002-11-05 06:58:34
Message-ID: T5e5f6719bcc407b70784c@reuters.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<br><font size=2 face="sans-serif">On 11/05/2002 04:42:55 AM Neil Conway wrote:<br>
&gt; Mike Mascari &lt;mascarm(at)mascari(dot)com&gt; writes:<br>
&gt; &gt; Is there any thought about changing the protocol to support<br>
&gt; &gt; two-phase commit? Not that 2PC and distributed transactions would be<br>
&gt; &gt; implemented in 7.4, but to prevent another protocol change in the<br>
&gt; &gt; future?<br>
&gt; <br>
&gt; My understanding is that 2PC is one way to implement multi-master<br>
&gt; replication. If that's what you're referring to, then I'm not sure I<br>
</font>
<br><font size=2 face="sans-serif">Another use of two-phase commit is in messaging middleware (MOM, message oriented middleware), were both the middleware and the database participate in the same transaction. Consider:</font>
<br>
<br><font size=2 face="sans-serif">- DB: begin</font>
<br><font size=2 face="sans-serif">- MOM: begin</font>
<br><font size=2 face="sans-serif">- DB: insert</font>
<br><font size=2 face="sans-serif">- MOM: send message</font>
<br><font size=2 face="sans-serif">- DB: prepare</font>
<br><font size=2 face="sans-serif">- MOM: prepare ==&gt; fails</font>
<br><font size=2 face="sans-serif">- DB: rollback</font>
<br><font size=2 face="sans-serif">- MOM: rollback</font>
<br>
<br><font size=2 face="sans-serif">just a simple example...</font>
<br>
<br><font size=2 face="sans-serif">Maarten</font>
<CODE><FONT SIZE=3><BR>
<BR>
------------------------------------------------------------- ---<BR>
Visit our Internet site at http://www.reuters.com<BR>
<BR>
Get closer to the financial markets with Reuters Messaging - for more<BR>
information and to register, visit http://www.reuters.com/messaging<BR>
<BR>
Any views expressed in this message are those of the individual<BR>
sender, except where the sender specifically states them to be<BR>
the views of Reuters Ltd.<BR>
</FONT></CODE>

Attachment Content-Type Size
unknown_filename text/html 1.9 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Clift 2002-11-05 07:36:08 Re: [HACKERS] PostgreSQL IRC Channel... who's the Admin?
Previous Message Thomas Lockhart 2002-11-05 06:20:14 Re: v7.3Beta4 Tag'd and Packaged ...