Re: surrogate key or not?

From: Kenneth Gonsalves <lawgon(at)thenilgiris(dot)com>
To: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: surrogate key or not?
Date: 2004-07-23 07:57:46
Message-ID: 0407231327461F.01150@thenilgiris.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Friday 23 July 2004 12:27 pm, Karsten Hilbert wrote:

> BTW, our full schema is here:
>
> http://www.hherb.com/gnumed/schema/

i was looking at your schema. i'm not a database pro, but in master tables i
see you have made the serial id as the primary key. i do it this way:

id serial unique
name varchar(25) not null
primary key is name - after all, you are going to search this on name arent
you? or is there some advantage in doing it your way?

also, how did you get that neatly formatted output of the schema?
--
regards
kg

http://www.onlineindianhotels.net - hotel bookings reservations in over 4600
hotels in India
http://www.ootygolfclub.org

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Kenneth Gonsalves 2004-07-23 09:00:10 Re: surrogate key or not?
Previous Message Karsten Hilbert 2004-07-23 06:57:21 Re: surrogate key or not?