Re: surrogate key or not? - Mailing list pgsql-sql

From Kenneth Gonsalves
Subject Re: surrogate key or not?
Date
Msg-id 0407231327461F.01150@thenilgiris.com
Whole thread Raw
In response to Re: surrogate key or not?  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: surrogate key or not?
Re: surrogate key or not?
List 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


pgsql-sql by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: surrogate key or not?
Next
From: Michael Glaesemann
Date:
Subject: Re: surrogate key or not?