aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeGroup.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-12-22 10:35:03 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2022-12-22 10:35:03 -0500
commit4fceb454f2df57f63d05ccb4a26a9f49c377f28c (patch)
treec194bfe3f3794b78e285d26287a9032a4e2b4d84 /src/backend/executor/nodeGroup.c
parentd35f1d485c392ce058382794742ce246e47643ec (diff)
downloadpostgresql-4fceb454f2df57f63d05ccb4a26a9f49c377f28c.tar.gz
postgresql-4fceb454f2df57f63d05ccb4a26a9f49c377f28c.zip
Add some recursion and looping defenses in prepjointree.c.
Andrey Lepikhov demonstrated a case where we spend an unreasonable amount of time in pull_up_subqueries(). Not only is that recursing with no explicit check for stack overrun, but the code seems not interruptable by control-C. Let's stick a CHECK_FOR_INTERRUPTS there, along with sprinkling some stack depth checks. An actual fix for the excessive time consumption seems a bit risky to back-patch; but this isn't, so let's do so. Discussion: https://postgr.es/m/703c09a2-08f3-d2ec-b33d-dbecd62428b8@postgrespro.ru
Diffstat (limited to 'src/backend/executor/nodeGroup.c')
0 files changed, 0 insertions, 0 deletions