Re: [HACKERS] Nested transactions RFC

2002-05-12 Thread Hiroshi Inoue
Tom Lane wrote: > > Manfred Koizar <[EMAIL PROTECTED]> writes: > > A *stack* of _active_ transaction numbers is not sufficient, we need > > the whole *tree* of _all_ transactions belonging to the current top > > level transaction. This is, want I wanted to model in my pg_subtrans > > "table". An

Re: [HACKERS] Nested transactions RFC

2002-05-12 Thread Stephan Szabo
On Sun, 12 May 2002, Tom Lane wrote: > Manfred Koizar <[EMAIL PROTECTED]> writes: > > A *stack* of _active_ transaction numbers is not sufficient, we need > > the whole *tree* of _all_ transactions belonging to the current top > > level transaction. This is, want I wanted to model in my pg_subt

Re: [HACKERS] Nested transactions RFC

2002-05-12 Thread Tom Lane
Manfred Koizar <[EMAIL PROTECTED]> writes: > A *stack* of _active_ transaction numbers is not sufficient, we need > the whole *tree* of _all_ transactions belonging to the current top > level transaction. This is, want I wanted to model in my pg_subtrans > "table". And pg_subtrans cannot be a pr

Re: [HACKERS] Nested transactions RFC

2002-05-11 Thread Manfred Koizar
Tom, reading my message again and your response, I see, that some points were a bit unclear. On Fri, 10 May 2002 13:12:21 +0200, I wrote: |if it is acceptable for subtransactions to use up transaction numbers, Of course, "use up" is nonsense, as it sounds like "use all available"; this should h

Re: [HACKERS] Nested transactions RFC

2002-05-11 Thread Tom Lane
Manfred Koizar <[EMAIL PROTECTED]> writes: > TransactionId GetParentXact(TransactionId xnum) uses pg_subtrans to > find the parent transaction of xnum. This is not only extremely expensive, but in practice would cause infinite recursion: any attempt to validate the commit state of a row in pg_sub

[HACKERS] Nested transactions RFC

2002-05-10 Thread Manfred Koizar
Hi, if it is acceptable for subtransactions to use up transaction numbers, then here is a half baked RFC for a possible implementation. If not, forget the rest of this message. The proposed implementation works much like the current transaction handling. It needs an additional system table pg_s