vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| omar@tinysofa.org writes: > Attached is a patch (by Gavin Sherry, fixed up to apply to 8.1 by me) that > implements INSERT ... RETURNING functionality. > It does work for the common case of RETURNING the value of a serial/sequence > column, but gets confused when returning results out-of-order (CREATE TABLE x > (a int, b int), INSERT ... RETURNING b, a) and doesn't let you specify the same > column multiple times (INSERT ... RETURNING b, b). These will be addressed > soon. This is pretty considerably shy of what I thought had been agreed to anyway: - should allow expressions not only column names - should work for UPDATE and DELETE too regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) |
| ||||
| Tom Lane wrote: > - should work for UPDATE and DELETE too And probably INSERT ... SELECT as well. -Neil ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org |
| Thread Tools | |
| Display Modes | |
|
|