Improve plpgsql parsing to report "foo is not a known variable", rather than a

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2d7f136ff72c2507e51990b795642321581fa396
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-01-10T17:56:50Z
Releases: 9.0.0
Improve plpgsql parsing to report "foo is not a known variable", rather than a
generic syntax error, when seeing "foo := something" and foo isn't recognized.
This buys back most of the helpfulness discarded in my previous patch by not
throwing errors when a qualified name appears to match a row variable but the
last component doesn't match any field of the row.  It covers other cases
where our error messages left something to be desired, too.

Files

PathChange+/−
src/pl/plpgsql/src/gram.y modified +68 −33