Re: 2-phase commit - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: 2-phase commit
Date
Msg-id 012f01c38696$2a33f390$3d283ddb@PbgX
Whole thread Raw
In response to Re: 2-phase commit  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
> -----Original Message-----
> From: Zeugswetter Andreas SB SD [mailto:ZeugswetterA@spardat.at] 
> > 
> >  Example:
> > 
> >         Master          Slave
> >         ------          -----
> >         commit ready-->
> 
> This is the commit for phase 1. This commit is allowed to return all 
> sorts of errors, like violated deferred checks, out of diskspace, ...
> 
> >                         <--OK
> >         commit done->XX
> 
> This is commit for phase 2, the slave *must* answer with "success"
> in all but hardware failure cases. (Note that instead the 
> master could 
> instead send rollback, e.g. because some other slave aborted)
> 
> > is the "commit done" message needed ?
> 
> So, yes this is needed

Thanks.
I misunderstood that the "commit done" message is the last response from
the participant to the coordinator. I missed the "OK" message before it.
Where were my eyes ?

regards,
Hiroshi Inoue



pgsql-hackers by date:

Previous
From: Christof Petig
Date:
Subject: Re: Alter Table Column Datatype
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: 2-phase commit