Re: Add Missing From?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add Missing From?
Date: 2004-08-10 15:00:26
Message-ID: 200408101500.i7AF0Qq15552@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > There is no way to specify a table alias for the deleted table in
> > the DELETE WHERE clause because there is no FROM clause.
>
> This description confuses two quite separate issues.

Yea, it does.

How is this text:

* Allow DELETE to handle table aliases for self-joins

There is no way to create a table alias for the deleted table for use
in the DELETE WHERE clause. The agreed approach is to allow a USING
clause to specify additional tables. UPDATE already has an optional
FROM clause for this purpose.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message pgsql 2004-08-10 15:22:50 Re: fsync vs open_sync (more info)
Previous Message Stephan Szabo 2004-08-10 14:43:49 Re: Add Missing From?