public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Ayush Tiwari <[email protected]>
Cc: [email protected]
Cc: [email protected]
Subject: Re: BUG #19482: Recursive QueueFKConstraintValidation() lacks stack depth check
Date: Tue, 26 May 2026 11:59:43 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAJTYsWX5zQQozsqR-i1JQjDpw=d7mPhafD2qanCo3sH6BguTPA@mail.gmail.com>
References: <[email protected]>
<CAJTYsWX5zQQozsqR-i1JQjDpw=d7mPhafD2qanCo3sH6BguTPA@mail.gmail.com>
Ayush Tiwari <[email protected]> writes:
> QueueFKConstraintValidation() recurses through the partition hierarchy
> without a stack-depth check, which is the usual reason for SIGSEGV
> crashes like the one in your stack trace. Other recursive helpers in
> tablecmds.c (and elsewhere in the backend) call check_stack_depth() at
> function entry so that we raise a controlled "stack depth limit
> exceeded" error instead.
> The attached patch does the same here. With max_stack_depth reduced
> to 100kB, a scaled-down repro (2000 nested partitions) reproduces the
> crash on master and produces the following clean error with the patch:
Thanks for the patch, pushed.
regards, tom lane
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: BUG #19482: Recursive QueueFKConstraintValidation() lacks stack depth check
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox