Re: Nested transaction proposal - take N (N > 2)

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Nested transaction proposal - take N (N > 2)
Date: 2004-03-26 02:07:45
Message-ID: 40639071.8020905@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>> a c
>> 0 0 transaction in progress, the owning backend knows whether
>> it is a main- or a sub-transaction, other backends don't care
>> 1 0 aborted, nobody cares whether main- or sub-transaction
>> 0 1 committed main-transaction or - with shortcut 2 - a sub-
>> transaction that's known committed to all active transactions
>> 1 1 committed sub-transaction, have to look for parent in
>> pg_subtrans
>
>
> This conflicts with my two-phase commit patch. I'm using the fourth state
> to mark transactions that have been prepared (1st. phase) but not yet
> committed.
>
> I think I can work around it in my code, so that you can have the fourth
> state. I have to keep a list of prepared transactions in memory anyway, I
> can use that instead.

He who commits first, wins :P

Chris

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-03-26 02:45:28 Re: Per database users/admins, handy for database virtual hosting...
Previous Message Christopher Kings-Lynne 2004-03-26 02:03:00 Re: Email addresses on developer bios site