Re: OID as Primary Key

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jonas Bengtsson <jonas(dot)b(at)home(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: OID as Primary Key
Date: 2001-03-22 15:07:49
Message-ID: 25839.985273669@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jonas Bengtsson <jonas(dot)b(at)home(dot)se> writes:
> I have problems with using OID as PK.

This strikes me as a fairly bad idea in any case. What happens if you
must dump and reload your database? Better to use a SERIAL column as
primary key.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-03-22 15:11:27 Re: PG UPDATE question
Previous Message The Hermit Hacker 2001-03-22 15:06:31 Re: Re: Call for platforms