Re: BUG #4295: DELETE WHERE Condition

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: "Fred Perniss" <perniss(at)zks-gmbh(dot)de>
Subject: Re: BUG #4295: DELETE WHERE Condition
Date: 2008-07-11 08:39:58
Message-ID: 200807111040.00823.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Am Freitag, 11. Juli 2008 schrieb Fred Perniss:
> In Postgres the switch add_mising_from=on the SQL-Command
>
> DELETE FROM t2
> WHERE (t2.t2_t1_id=t1.t1_id)
> AND t1.t1_inhalt=5
> ;
>
> works (with message in Log).
>
> If the switch add_missing_from=off following Error-Message will be promted:
>
> Fehlender Eintrag in FROM Klausel für Tabelle t1

You want to use DELETE .. USING. See the man page for details.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michal Szelag 2008-07-11 08:42:40 BUG #4296: Server crashes by restoring database
Previous Message Fred Perniss 2008-07-11 07:34:16 BUG #4295: DELETE WHERE Condition