Re: OID order = INSERT order? - Mailing list pgsql-general

From scott.marlowe
Subject Re: OID order = INSERT order?
Date
Msg-id Pine.LNX.4.33.0209160942260.32487-100000@css120.ihs.com
Whole thread Raw
In response to OID order = INSERT order?  (Justin Hawkins <justin@internode.com.au>)
Responses Re: OID order = INSERT order?  (elein <elein@norcov.com>)
List pgsql-general
On 13 Sep 2002, Justin Hawkins wrote:

>
> Hi folks,
>
> I am converting a legacy (DBM file backend) app to SQL. The current
> storage scheme utlizes ordered list values on objects. To emulate this
> I'm just doing multiple INSERTs on a table.
>
> I need to make sure they will come back out in the same order, every
> time though.
>
> When I fetch values back from the table, if I 'ORDER BY oid', will I
> always get them back in the same order I put them in?

If you update a row, it will then have a different OID since postgresql
uses MVCC.

do it the right way, make a sequence and attach it to the table.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: RI Trigger Names
Next
From: "Williams, Travis L, NPONS"
Date:
Subject: Re: Can't run configure