Re: " Adding missing FROM-clause entry for table .... " problem. - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: " Adding missing FROM-clause entry for table .... " problem.
Date
Msg-id 20030218141243.GA11505@wolff.to
Whole thread Raw
In response to Re: " Adding missing FROM-clause entry for table .... " problem.  (Christoph Haller <ch@rodos.fzk.de>)
Responses Re: " Adding missing FROM-clause entry for table .... " problem.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On Tue, Feb 18, 2003 at 12:51:27 +0100, Christoph Haller <ch@rodos.fzk.de> wrote:
> AFAIK, statements like
> 
> DELETE FROM t1 where t1.id = t2.id ;
> 
> are legal. Could the parser still work on this, if the feature is
> removed?

Only if a new syntax is added.

In fact it would be nice if this automatic adding of join tables was documented
under delete. Most people aren't going to notice that the optional listing
of joined tables mentioned under the select documenation applies to delete.
And if people don't notice they are likely to try to implement this using
subselects which may not be as efficient in some cases.


pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: How to make sequence skip existing key in table?
Next
From: Tom Lane
Date:
Subject: Re: " Adding missing FROM-clause entry for table .... " problem.