pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: darcy@druid.net
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: wagner@imsd.uni-mainz.de, pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: using OID as primary key
Date: Fri, 21 Jul 2000 09:58:15 -0400 (EDT)
Message-ID: <m13FdJf-000AXVC@druid.net> (raw)
In-Reply-To: <200007211157.NAA04499@hot.jw.home>

Thus spake Jan Wieck
> > are there any disadvantages of using OID as the primary key for any
> > table?
> > What about referencing external tuples using their OIDs?
> 
>     Currently OID is not supported for references. Has to do with
>     some checks done in the RI  triggers,  using  SPI  functions.
>     We're thinking about a solution...

Also, don't forget about the dump/restore issue.  You have to remember
to dump OIDs with "-o" or else all your references will be trashed.

<OPINION>
Personally I would avoid it.  Adding a serial type almost gives you
the same thing anyway.  OIDs are useful in system tables and temporarily
in programs when dealing with tables without primary keys.
</OPINION>

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



view thread (3+ messages)

Message-ID: <m13FdJf-000AXVC@druid.net>
Permalink:  ../m13FdJf-000AXVC@druid.net/
Also on:    postgresql.org/message-id/m13FdJf-000AXVC@druid.net

 · 

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: darcy@druid.net, JanWieck@Yahoo.com
  Subject: Re: using OID as primary key
  In-Reply-To: <m13FdJf-000AXVC@druid.net>
  References: <200007211157.NAA04499@hot.jw.home> <m13FdJf-000AXVC@druid.net>

* 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