public inbox for [email protected]help / color / mirror / Atom feed
pgsql: Add stack depth check to QueueFKConstraintValidation(). 2+ messages / 1 participants [nested] [flat]
* pgsql: Add stack depth check to QueueFKConstraintValidation(). @ 2026-05-26 15:58 Tom Lane <[email protected]> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2026-05-26 15:58 UTC (permalink / raw) To: [email protected] Add stack depth check to QueueFKConstraintValidation(). QueueFKConstraintValidation() recurses through the partition hierarchy to queue child constraint validations and to mark child rows as validated. With a sufficiently deep partition tree, this can result in a stack-overflow crash. Defend against that as we do elsewhere. Bug: #19482 Reported-by: Alexander Lakhin <[email protected]> Author: Ayush Tiwari <[email protected]> Reviewed-by: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch-through: 18 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/61ea5cc6a61ff9eb8b3d7b055e507a726e5856c7 Modified Files -------------- src/backend/commands/tablecmds.c | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Add stack depth check to QueueFKConstraintValidation(). @ 2026-05-26 15:58 Tom Lane <[email protected]> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2026-05-26 15:58 UTC (permalink / raw) To: [email protected] Add stack depth check to QueueFKConstraintValidation(). QueueFKConstraintValidation() recurses through the partition hierarchy to queue child constraint validations and to mark child rows as validated. With a sufficiently deep partition tree, this can result in a stack-overflow crash. Defend against that as we do elsewhere. Bug: #19482 Reported-by: Alexander Lakhin <[email protected]> Author: Ayush Tiwari <[email protected]> Reviewed-by: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch-through: 18 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0480d84ee35f386d3d78b58488303f9f6ba1b4c2 Modified Files -------------- src/backend/commands/tablecmds.c | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-05-26 15:58 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-05-26 15:58 pgsql: Add stack depth check to QueueFKConstraintValidation(). Tom Lane <[email protected]> 2026-05-26 15:58 pgsql: Add stack depth check to QueueFKConstraintValidation(). Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox