Re: [HACKERS] Efficient DELETE Strategies - Mailing list pgsql-sql

From Barry Lind
Subject Re: [HACKERS] Efficient DELETE Strategies
Date
Msg-id 3D05436F.5040008@xythos.com
Whole thread Raw
In response to Efficient DELETE Strategies  (Christoph Haller <ch@rodos.fzk.de>)
List pgsql-sql
This

Hannu Krosing wrote:
> DELETE relation_expr FROM relation_expr [ , table_ref [ , ... ] ]
>      [ WHERE bool_expr ]


This in some ways is similar to Oracle where the FROM is optional in a 
DELETE (ie. DELETE foo WHERE ...).  By omitting the first FROM, the 
syntax ends up mirroring the UPDATE case:

DELETE foo FROM bar WHERE ...

UPDATE foo FROM bar WHERE ...

However I think the syntax should also support the first FROM as being 
optional (even though it looks confusing):

DELETE FROM foo FROM bar WHERE ...

thanks,
--Barry



pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Efficient DELETE Strategies
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Efficient DELETE Strategies