Re: Stack overflow issue - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Stack overflow issue
Date
Msg-id CAMbWs4_p9rP=0XtVqzZf6dEFx0MHmPFOP4PhG8N8=_tqk2+yjA@mail.gmail.com
Whole thread Raw
In response to Re: Stack overflow issue  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Stack overflow issue
List pgsql-hackers

On Wed, Aug 24, 2022 at 6:49 PM Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
On 2022-Aug-24, mahendrakar s wrote:

> Hi,
> Can we have a parameter to control the recursion depth in these cases to
> avoid crashes?

We already have one (max_stack_depth).  The problem is lack of calling
the control function in a few places.
 
Thanks Egor and Alexander for the work! I think we can just add
check_stack_depth checks in these cases.

Thanks
Richard

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Change pfree to accept NULL argument
Next
From: Natarajan R
Date:
Subject: Re: Logical replication support for generic wal record