Re: OID Perfomance - Object-Relational databases

From: Jeff MacDonald <jeff(at)pgsql(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: sqllist <pgsql-sql(at)postgresql(dot)org>, Jeff MacDonald <jeff(at)pgsql(dot)com>
Subject: Re: OID Perfomance - Object-Relational databases
Date: 2000-10-04 11:43:46
Message-ID: Pine.BSF.4.21.0010032334080.24435-100000@rage.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Josh,

I didn't get right tho this, because well.. you asked
the list, i figured i'd give them a chance first. and they've
answered the same as i would have..

> Because it's a very elegant solution to my database structure issues,
> I'm using OID's extensively as referents and foriegn keys. However, I
> wanted to see if others had previous experience in this (answer as many
> as you like):
>
> 1. Is there a performance loss on searches and joins when I use the OID
> as a liniking field as opposed to a SERIAL column?

yes, because indexes are automatcally created on serials.

> 2. Can I define my own index on the OIDs of a table?

sure, create index oid_idx on table(oid);

Jeff MacDonald,

-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
jeff(at)pgsql(dot)com | jeff(at)hub(dot)org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Ansley 2000-10-04 12:59:04 RE: Re: OID Perfomance - Object-Relational databases
Previous Message Grant Finnemore 2000-10-04 10:24:47 Re: Q: performance on some selects (7.0.2)?