"Karen Hill" <karen_hill22@xxxxxxxxx> writes: > I have an updateable view (using rules) that I'm trying to improve by > using 8.2's RETURNING feature to place the result of one insert into > the next. That's not what it's for. RETURNING in an insert rule is to define what to return if someone does an INSERT/RETURNING *on the view*. It's thrown away if the rule is invoked by a plain INSERT. regards, tom lane