I think it still leaves us with a number of problems
1) the code has to know in advance to issue the insert returning. 2) also has to know in advance which columns are autogenerated.
in the case of jdbc the getGeneratedKeys method returns the values of any autogenerated columns without knowing in advance
which columns are generated.
This seems to imply that this has to be done by the server without any client library knowing before hand the primary keys.
Dave
-- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org