Primary key efficiency

From: Russell Shaw <rjshaw(at)iprimus(dot)com(dot)au>
To: pgsql-novice(at)postgresql(dot)org
Subject: Primary key efficiency
Date: 2004-01-25 11:06:01
Message-ID: 4013A319.4070604@iprimus.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

Is a long field ok for a primary key, or should i use
a unique integer?:

create table parts (
manufacturers_code char(40) primary key,
description char(40),
man_id int references manufacturers (man_id)
);

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message V i s h a l Kashyap @ [Sai Hertz And Control Systems] 2004-01-25 11:22:42 Re: Primary key efficiency
Previous Message Michael Glaesemann 2004-01-25 06:33:21 Re: Multiway associations