Fix the implicit-RTE code to be able to handle implicit RTEs for CTEs, as
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 6 Oct 2008 02:12:56 +0000 (02:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 6 Oct 2008 02:12:56 +0000 (02:12 +0000)
commit1d9280598c203238a45333ba751f9b53282224ba
tree3a54586a0d5dbad4c5ce4d0c7873e7ecc9a48047
parent4274900d467a30c9e8ba3bd6951cc4c35aebf2f5
Fix the implicit-RTE code to be able to handle implicit RTEs for CTEs, as
well as regular tables.  Per discussion, this seems necessary to meet the
principle of least astonishment.

In passing, simplify the error messages in warnAutoRange().  Now that we
have parser error position info for these errors, it doesn't seem very
useful to word the error message differently depending on whether we are
inside a sub-select or not.
src/backend/parser/parse_clause.c
src/backend/parser/parse_relation.c
src/include/parser/parse_relation.h