Re: DELETE syntax on JOINS - Mailing list pgsql-hackers

From Jean-Michel Pouré
Subject Re: DELETE syntax on JOINS
Date
Msg-id 1251182999.5096.8.camel@acer
Whole thread Raw
In response to Re: DELETE syntax on JOINS  (Bill Moran <wmoran@potentialtech.com>)
List pgsql-hackers
> With proper foreign keys and ON DELETE CASCADE, why would supporting
> such syntax even be necessary?

Porting existing abstraction layers from ANSI JOINs to ON DELETE CASCADE
is complicated.

> What I don't get is why this is such a usability issue.  Subqueries in
> DELETE FROM work perfectly well, and provide more flexibility than
> most
> users know what to do with.

The ANSI syntax allows deleting one or several tables at once.
Subqueries are not supported by MySQL on DELETE.

Again, this is a usability issue to gain market shares and happy users
againts MySQL.

Kind regards,
Jean-Michel

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug in visibility hint bit
Next
From: "Markus Wanner"
Date:
Subject: setting up scan keys