OSDN Git Service

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)
commit3437286356ec3dcbc5abadf78f2587e845a2d7c8
treea8de47826bdcaa58fe1eb482c698c09dfcf34cfe
parente229998138c086e65afc2d0ebd5983bd39921b37
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