Re: BUG #5566: High levels of savepoint nesting trigger stack overflow in AssignTransactionId

From: Andres Freund <andres(at)anarazel(dot)de>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>, Hans van Kranenburg <hans(dot)van(dot)kranenburg(at)mendix(dot)com>
Subject: Re: BUG #5566: High levels of savepoint nesting trigger stack overflow in AssignTransactionId
Date: 2010-07-21 19:20:15
Message-ID: 20100721192015.GA3015@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Jul 19, 2010 at 10:35:42PM +0200, Andres Freund wrote:
> On Monday 19 July 2010 20:32:49 Andres Freund wrote:
> > On Monday 19 July 2010 20:19:35 Heikki Linnakangas wrote:
> > > On 19/07/10 20:58, Andres Freund wrote:
> > > > On Monday 19 July 2010 19:57:13 Alvaro Herrera wrote:
> > > >> Excerpts from Andres Freund's message of lun jul 19 11:58:06 -0400
> 2010:
> > > >>> It seems easy enough to throw a check_stack_depth() in there -
> > > >>> survives make check here.
> > > >>
> > > >> I wonder if it would work to deal with the problem non-recursively
> > > >> instead. We don't impose subxact depth restrictions elsewhere, why
> > > >> start now?
> > > >
> > > > It looks trivial enough, but whats the point?
> > >
> > > To support more than <insert abitrary limit here> subtransactions,
> > > obviously.
> >
> > Well. I got that far. But why is that something worthy of support?
> > For one I have a hard time imaging a sensible use case, for another doing
> > anything in that deeply nested transactions seems to gets really slow (the
> > chain of transactions gets walked at some places for one thing, there seem
> > to be others).
> >
> > If want I can write a patch for that as well, seems to be trivial enough.
> Updated patch attached.
hm. I dont want to push - just to ask: Is any comitter looking either
at the patch or the bug?

Greetings,

Andres

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Simon Riggs 2010-07-22 07:21:52 Re: BUG #5566: High levels of savepoint nesting trigger stack overflow in AssignTransactionId
Previous Message krishnakant.bagwe 2010-07-21 06:04:03 Data extraction via sql from postgres 8.2 to oracle9i.