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 [EMAIL PROTECTED] | [EMAIL PROTECTED] www.pgsql.com | www.hub.org 1-902-542-0713 | 1-902-542-3657 ----------------------------------------------------- Facsimile : 1 902 542 5386 IRC Nick : bignose
- [SQL] OID Perfomance - Object-Relational databases Josh Berkus
- Re: [SQL] OID Perfomance - another question Mitch Vincent
- Re: [SQL] OID Perfomance - another question Tod McQuillin
- Re: [SQL] OID Perfomance - Object-Relational databases Tom Lane
- Re: [SQL] OID Perfomance - Object-Relational datab... Josh Berkus
- Re: [SQL] OID Perfomance - Object-Relational d... Michael Fork
- Re: [SQL] OID Perfomance - Object-Relational d... Tom Lane
- Re: [SQL] OID Perfomance - Object-Relation... Josh Berkus
- Re: [SQL] OID Perfomance - Object-Rel... Bruce Momjian
- RE: [SQL] OID Perfomance - Object-Relational databases Jeff MacDonald
- RE: [SQL] OID Perfomance - Object-Relational databases Michael Ansley
- Re: [SQL] OID Perfomance - Object-Relational datab... Mitch Vincent
- RE: [SQL] OID Perfomance - Object-Relational databases Michael Ansley
- RE: [SQL] OID Perfomance - Object-Relational databases Michael Ansley
- RE: [SQL] OID Perfomance - Object-Relational databases Michael Ansley
- Re: [SQL] OID Perfomance - Object-Relational databases Josh Berkus
- Re: [SQL] OID Perfomance - Object-Relational databases Josh Berkus
- Re: [SQL] OID Perfomance - Object-Relational datab... Bruce Momjian
- Re: [SQL] OID Perfomance - Object-Relational datab... Josh Berkus
- Re: [SQL] OID Perfomance - Object-Relational d... Bruce Momjian