postgresql/src
Tom Lane 935277b241 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
2022-12-16 13:07:42 -05:00
..
backend Fix inability to reference CYCLE column from inside its CTE. 2022-12-16 13:07:42 -05:00
bin pg_upgrade: Make testing different transfer modes easier 2022-12-16 18:32:02 +01:00
common Static assertions cleanup 2022-12-15 10:10:32 +01:00
fe_utils Non-decimal integer literals 2022-12-14 06:17:07 +01:00
include Fix typo in reference to __FreeBSD__. 2022-12-16 17:36:22 +13:00
interfaces Non-decimal integer literals 2022-12-14 06:17:07 +01:00
makefiles meson: Add basic PGXS compatibility 2022-12-06 18:56:46 -08:00
pl Allow building with MSVC and Strawberry perl 2022-11-25 15:28:38 -05:00
port meson: Basic cygwin support 2022-12-06 11:25:54 -08:00
template
test Fix inability to reference CYCLE column from inside its CTE. 2022-12-16 13:07:42 -05:00
timezone Remove unneeded includes of <sys/stat.h> 2022-11-05 12:31:28 +09:00
tools Create infrastructure for "soft" error reporting. 2022-12-09 09:58:38 -05:00
tutorial Doc: sync src/tutorial/basics.source with SGML documentation. 2022-11-19 13:09:14 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build meson: Add basic PGXS compatibility 2022-12-06 18:56:46 -08:00
nls-global.mk