Re: Two-phase commit security restrictions

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Two-phase commit security restrictions
Date: 2004-10-13 19:26:47
Message-ID: Pine.OSF.4.61.0410132221510.58068@kosh.hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 13 Oct 2004, Peter Eisentraut wrote:

> Heikki Linnakangas wrote:
>> What kind of security restrictions do we want for prepared
>> transactions? Who has the right to finish a transaction that was
>> started by user A? At least the original user, I suppose, but who
>> else?
>
> Do we not require transaction initiation and conclusion to happen in the
> same session, so that the transaction could be considered a
> session-local object?

No. After we have told the transaction manager that the transaction has
been successfully prepared, we must not lose it. Otherwise we break the
atomicity of the global transaction.

Successful preparation is a promise to the TM that we will be able to
finish the 2nd phase commit later, no matter what.

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-10-13 21:07:10 Re: more dirmod CYGWIN
Previous Message Peter Eisentraut 2004-10-13 19:18:51 Re: Two-phase commit security restrictions