aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-12-16 13:07:42 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2022-12-16 13:07:42 -0500
commitae98debf77d4aba7caa305fa4957577528699470 (patch)
tree89dfb58f7f9fcbd4061f29f2f7255832a0b19daa /src/backend/executor
parent1a9b43c688da9bbb13f0cb07d4b4c03abf1518b5 (diff)
downloadpostgresql-ae98debf77d4aba7caa305fa4957577528699470.tar.gz
postgresql-ae98debf77d4aba7caa305fa4957577528699470.zip
Fix inability to reference CYCLE column from inside its CTE.
Such references failed with "cache lookup failed for type 0" because we didn't resolve the type of the CYCLE column until after analyzing the CTE's query. We can just move that processing to before the recursive parse_sub_analyze call, though. While here, invent a couple of local variables to make this code less egregiously wider-than-80-columns. Per bug #17723 from Vik Fearing. Back-patch to v14 where the CYCLE feature was added. Discussion: https://postgr.es/m/17723-2c4985ff111e7bba@postgresql.org
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions