pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff MacDonald <jeff@pgsql.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: sqllist <pgsql-sql@postgresql.org>
Cc: Jeff MacDonald <jeff@pgsql.com>
Subject: Re: OID Perfomance - Object-Relational databases
Date: Wed, 4 Oct 2000 08:43:46 -0300 (ADT)
Message-ID: <Pine.BSF.4.21.0010032334080.24435-100000@rage.hub.org> (raw)
In-Reply-To: <39DA03EA.7A1027E8@agliodbs.com>

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@pgsql.com		| jeff@hub.org
www.pgsql.com		| www.hub.org
1-902-542-0713		| 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick  : bignose




view thread (21+ messages)  latest in thread

Message-ID: <Pine.BSF.4.21.0010032334080.24435-100000@rage.hub.org>
Permalink:  ../Pine.BSF.4.21.0010032334080.24435-100000@rage.hub.org/
Also on:    postgresql.org/message-id/Pine.BSF.4.21.0010032334080.24435-100000@rage.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jeff@pgsql.com, josh@agliodbs.com
  Subject: Re: OID Perfomance - Object-Relational databases
  In-Reply-To: <Pine.BSF.4.21.0010032334080.24435-100000@rage.hub.org>
  References: <39DA03EA.7A1027E8@agliodbs.com> <Pine.BSF.4.21.0010032334080.24435-100000@rage.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox