Re: " Adding missing FROM-clause entry for table .... " problem.

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: " Adding missing FROM-clause entry for table .... " problem.
Date: 2003-02-18 14:12:43
Message-ID: 20030218141243.GA11505@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Feb 18, 2003 at 12:51:27 +0100,
Christoph Haller <ch(at)rodos(dot)fzk(dot)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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-02-18 15:40:10 Re: " Adding missing FROM-clause entry for table .... " problem.
Previous Message Bruno Wolff III 2003-02-18 13:43:11 Re: How to make sequence skip existing key in table?