From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | get generated keys and insert returning |
Date: | 2005-03-07 13:06:32 |
Message-ID: | 422C51D8.4090401@fastcrypt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-03-07 14:39:50 | Re: Cost of XLogInsert CRC calculations |
Previous Message | Mark Cave-Ayland | 2005-03-07 11:04:00 | Re: Cost of XLogInsert CRC calculations |