Re: semi-stupid question (index on OID)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Pilosov <alex(at)pilosoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: semi-stupid question (index on OID)
Date: 2001-05-04 22:21:01
Message-ID: 1660.989014861@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Pilosov <alex(at)pilosoft(dot)com> writes:
> I though that searches on a table based on oid should be very fast (select
> * from table where oid=####), however, this doesn't appear to be the case.

Not unless you create an index on OID.

> My assumption was that essentially, if there is no clustering on the
> table, it is physically ordered by OID. Is that correct?

No, OID has little or nothing to do with physical location.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-04 22:24:09 Re: [SQL] delete with cascade
Previous Message Muhammad Rusydi 2001-05-04 22:18:25 how can i get plpgsql in function?