Re: Proposed patch to change "missing FROM" messages

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgreSQL(dot)org
Subject: Re: Proposed patch to change "missing FROM" messages
Date: 2006-01-10 00:04:06
Message-ID: 434FFEA2-1A13-45CF-BB09-577FEC63F30D@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


On Jan 10, 2006, at 8:32 , Tom Lane wrote:

> Attached is a proposed change to create hopefully-more-useful error
> messages in the cases where we currently say "missing FROM-clause
> entry".

It's good to have these hints for users. Thanks, Tom.

> Patch:
> regression=# select * from a,b join c on (a.aa = c.cc);
> ERROR: invalid reference to FROM-clause entry for table "a"
> HINT: There is an entry for "a", but it cannot be referenced from
> this part of the query.

For clarity, I'd rewrite this hint as
There is an entry for table "a", ...

Michael Glaesemann
grzm myrealbox com

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2006-01-10 00:34:32 Re: pl/python refcount bug
Previous Message Joachim Wieland 2006-01-10 00:03:11 TODO-item: Add sleep() function, remove from regress.c