Re: Stack overflow issue - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Stack overflow issue
Date
Msg-id CA+TgmoZbw8ivGy5Ma3B0_AtBN8pg5ovrSXM_w_sChz6spTe=FQ@mail.gmail.com
Whole thread Raw
In response to Re: Stack overflow issue  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Stack overflow issue
List pgsql-hackers
On Wed, Jan 10, 2024 at 4:25 PM Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> The problem with CommitTransactionCommand (or rather
> AbortCurrentTransaction() which has the same problem)
> and ShowTransactionStateRec is that they get called in a state where
> aborting can lead to a panic. If you add a "check_stack_depth()" to them
> and try to reproducer scripts that Egor posted, you still get a panic.

Hmm, that's unfortunate. I'm not sure what to do about that. But I'd
still suggest looking for a goto-free approach.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Compile warnings in dbcommands.c building with meson
Next
From: Xiaoran Wang
Date:
Subject: Re: Recovering from detoast-related catcache invalidations