aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-07-14 13:49:46 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-07-14 13:49:46 -0400
commit236b225ed452ae54bf3bb778b926495c4f1aa388 (patch)
tree8268329289a277449efbb6593b31e720b74ad74d /src/backend/utils/adt/arrayfuncs.c
parent53a14ec29024e8060755e462c384bc6c323dee14 (diff)
downloadpostgresql-236b225ed452ae54bf3bb778b926495c4f1aa388.tar.gz
postgresql-236b225ed452ae54bf3bb778b926495c4f1aa388.zip
Avoid unhelpful internal error for incorrect recursive-WITH queries.
checkWellFormedRecursion would issue "missing recursive reference" if a WITH RECURSIVE query contained a single self-reference but that self-reference was inside a top-level WITH, ORDER BY, LIMIT, etc, rather than inside the second arm of the UNION as expected. We already intended to throw more-on-point errors for such cases, but those error checks must be done before examining the UNION arm in order to have the desired results. So this patch need only move some code (and improve the comments). Per bug #18536 from Alexander Lakhin. Back-patch to all supported branches. Discussion: https://postgr.es/m/18536-0a342ec07901203e@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions