From: | "Joseph Molnar" <josephmolnar(at)hotmail(dot)com> |
---|---|
To: | "Josh Berkus" <josh(at)agliodbs(dot)com>, <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Question on oid's |
Date: | 2002-04-10 06:38:17 |
Message-ID: | OE49SVMum03yMJiQTyf0000068a@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
I am also new to Postgresql though not ORDBMS systems ... why should you not
use OIDs as a primary key in Postgresql?
Joe
----- Original Message -----
From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Juliet May" <jmay(at)speark(dot)com>; <pgsql-novice(at)postgresql(dot)org>
Sent: Tuesday, April 09, 2002 11:19 PM
Subject: Re: [NOVICE] Question on oid's
> Juliet,
>
> > My first question is about oid's. What are they exactly and when
> > should/shouldn't I use them. I had trouble finding any information on
> > them in either the online documentation or the online books. I'm
> > using pgadmin to develop my database and I noticed that once I select
> > or don't select oid that I can't change my mind.
>
> We need a FAQ on this. Sigh.
>
> OIDs are for system use. Occasionally some developers will build
> transaction tables, to which thousands or millions of records will be
> written and erased per day. For that case (and that case only) they
> will build "OID-less tables" in Postgres 7.2.
>
> Otherwise, you should build your tables with OIDs, but then ignore the
> OIDs and not use them as an index. The system helps by "hiding" the
> OID column from you.
>
> Should you run across documentation suggesting that you use the OID as
> an index or primary, key, that documentation is outdated.
>
> -Josh Berkus
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew McMillan | 2002-04-10 10:02:58 | Re: Question on oid's |
Previous Message | Josh Berkus | 2002-04-10 06:19:01 | Re: Question on oid's |