Modify the parser's error reporting to include a specific hint for the case
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Oct 2008 01:14:44 +0000 (01:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Oct 2008 01:14:44 +0000 (01:14 +0000)
commit1f8762f18e777374e90adcd133cc3371e2630d6e
tree09a62bdc29377e85d154c3b146991284dc896e6c
parent97d636dd2ef9c2ce010b075af67997a0fc647b77
Modify the parser's error reporting to include a specific hint for the case
of referencing a WITH item that's not yet in scope according to the SQL
spec's semantics.  This seems to be an easy error to make, and the bare
"relation doesn't exist" message doesn't lead one's mind in the correct
direction to fix it.
src/backend/access/heap/heapam.c
src/backend/parser/parse_cte.c
src/backend/parser/parse_relation.c
src/include/access/heapam.h
src/include/parser/parse_node.h