pgsql: Fix inability to reference CYCLE column from inside its CTE.

2022-12-16 Thread Tom Lane
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,

pgsql: Fix inability to reference CYCLE column from inside its CTE.

2022-12-16 Thread Tom Lane
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,

pgsql: Fix inability to reference CYCLE column from inside its CTE.

2022-12-16 Thread Tom Lane
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,