On Fri, Feb 24, 2012 at 9:43 AM, Peter Geoghegan <pe...@2ndquadrant.com> wrote: > Tom's point example does not seem to be problematic to me - the cast > *should* blame the 42 const token, as the cast doesn't work as a > result of its representation, which is in point of fact why the core > system blames the Const node and not the coercion one.
I think I agree Tom's position upthread: blaming the coercion seems to me to make more sense. But if that's what we're trying to do, then why does parse_coerce() say this? /* * Set up to point at the constant's text if the input routine throws * an error. */ /me is confused. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers