On Fri, Nov 18, 2005 at 02:26:26PM +0100, Harald Armin Massa wrote: > everything is fine. BUT: I feel that this a SO USUAL request (please, give > me the new primary key of that just inserted beast), that there may be a > simpler way, and I am just to blind to see. See the currval() documents: http://www.postgresql.org/docs/8.1/interactive/functions-sequence.html A -- Andrew Sullivan | ajs@xxxxxxxxxxxxxxx This work was visionary and imaginative, and goes to show that visionary and imaginative work need not end up well. --Dennis Ritchie