PostgreSQL, psycopg2 and OID-less tables

Dale Strickland-Clark dale at
Fri Sep 15 16:12:17 CEST 2006

Now that OIDs have been deprecated in PostgreSQL, how do you find the key of
a newly inserted record?

I've tried three Python client libraries, including psycopg2, and where they
support cursor attribute 'lastrowid' (Python DB API 2.0), it is always

Anyone figured this out?

Dale Strickland-Clark
Riverhall Systems -

More information about the Python-list mailing list