Re: DB2-style INS/UPD/DEL RETURNING - Mailing list pgsql-hackers

From Jonah H. Harris
Subject Re: DB2-style INS/UPD/DEL RETURNING
Date
Msg-id 36e682920603131402j3477ff26ye6fabd13104610c@mail.gmail.com
Whole thread Raw
In response to Re: DB2-style INS/UPD/DEL RETURNING  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 3/13/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Also, is the front SELECT allowed to have its own WHERE, or is it
constrained to return exactly one row per inserted/updated/deleted row?
If it can have a WHERE then there's a syntactic ambiguity in
        SELECT ... FROM NEW TABLE UPDATE ... WHERE ...

Yes, I believe it supports SELECT .. FROM NEW TABLE (UPDATE .. WHERE ..) WHERE

IBM's paper, "Returning Modified Rows--SELECT Statements with Side Effects" is here:
 http://www.isys.ucl.ac.be/vldb04/eProceedings/contents/pdf/IND1P1.PDF

I'll look up more.

--
Jonah H. Harris, Database Internals Architect
EnterpriseDB Corporation
732.331.1324

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: DB2-style INS/UPD/DEL RETURNING
Next
From: "Guillaume Smet"
Date:
Subject: log_duration and log_statement