get generated keys and insert returning - Mailing list pgsql-hackers

From Dave Cramer
Subject get generated keys and insert returning
Date
Msg-id 422C51D8.4090401@fastcrypt.com
Whole thread Raw
List pgsql-hackers
There's a requirement for the odbc, and jdbc drivers to be able to 
return generated keys. AFAIR implementing insert returning would solve 
this problem.

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



pgsql-hackers by date:

Previous
From: "Mark Cave-Ayland"
Date:
Subject: Re: Cost of XLogInsert CRC calculations
Next
From: Tom Lane
Date:
Subject: Re: Cost of XLogInsert CRC calculations