> That looks like the solution to my problem, thanks!...I tried running it > on my 8.0.8 server, but it wasn't found, I assume that's an 8.1 only > function? Note that the upcoming 8.2 release has a handy "returning" clause for insert: http://developer.postgresql.org/pgdocs/postgres/sql-insert.html Bye, Chris.