insert without oids

From: Michael Stone <mstone+postgres(at)mathom(dot)us>
To: pgsql-performance(at)postgresql(dot)org
Subject: insert without oids
Date: 2006-01-13 20:10:11
Message-ID: 20060113201011.GI1408@mathom.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

OIDs seem to be on their way out, and most of the time you can get a
more helpful result by using a serial primary key anyway, but I wonder
if there's any extension to INSERT to help identify what unique id a
newly-inserted key will get? Using OIDs the insert would return the OID
of the inserted row, which could be useful if you then want to refer to
that row in a subsequent operation. You could get the same result by
manually retrieving the next number in the sequence and using that value
in the insert, but at the cost of additional DB operations. Are there
plans on updating the insert API for the post-OID world?

Mike Stone

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Fuhr 2006-01-13 20:19:59 Re: insert without oids
Previous Message Frank Wiles 2006-01-13 17:41:26 Re: Please Help: PostgreSQL performance Optimization