Re: [GENERAL] using ID as a key

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
Cc: Marc Tardif <admin(at)wtbwts(dot)com>, sheila bel <sheilabel(at)hotmail(dot)com>, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] using ID as a key
Date: 2000-02-04 21:39:57
Message-ID: 200002042139.QAA00161@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Marc Tardif wrote:
> >
> > I recommend you read Momjian's online book, very informative and provides
> > all the necessary information about using various kinds of id's:
> > http://www.postgresql.org/docs/aw_pgsql_book/index.html
>
> In glancing at Momjian's stuff on this just now, I noticed the book
> could leave the first-time reader with the impression that both OIDs
> and sequences (ie, SERIAL) are viable choices for use as primary keys
> (unintentionally?). Sequences and SERIALs are not mentioned until
> after a long example of how to do primary keys with OIDs.

Don't glance. Read the whole chapter. It will be clear. If people get
the wrong impression by reading part of the chapter, well, it's their
fault.

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message davidb 2000-02-04 22:07:34 Re: [GENERAL] using ID as a key
Previous Message Jens Skakkebaek 2000-02-04 21:15:22 Help with postmaster on NT: command not found