Re: sequences vs oids as primary keys

From: Kenneth Downs <ken(at)secdat(dot)com>
To: craigp <craigp98072(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: sequences vs oids as primary keys
Date: 2006-07-25 12:34:32
Message-ID: 44C60FD8.2080302@secdat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

craigp wrote:

>1) does it make sense (and would it be possible) to make a rule which would,
>say, somehow write into the oid field of a tuple to be returned by lastoid? i'm
>assuming here that the database would not have oid's enabled.
>
>
>
We do this in a trigger. We assign the NEXTVAL to a variable, write
that to the row, then raise its value as a notice. Then we just
retrieve the notice.

Attachment Content-Type Size
ken.vcf text/x-vcard 186 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-07-25 13:14:53 Re: Lock changes with 8.1 - what's the right lock?
Previous Message Wes 2006-07-25 12:12:28 Re: Lock changes with 8.1 - what's the right lock?