OSDN Git Service

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)
commit0ff384f0bcd1a828dc994f02cbbd8bfc3405e94d
treee7036f8f1f6ac1c19b27aff95c98fa6669f8a975
parentaf88c9bbecf56afa2f2d7abe1dad927ca0287261
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