Primary key efficiency

Поиск
Список
Период
Сортировка
От Russell Shaw
Тема Primary key efficiency
Дата
Msg-id 4013A319.4070604@iprimus.com.au
обсуждение исходный текст
Ответы Re: Primary key efficiency  ("V i s h a l Kashyap @ [Sai Hertz And Control Systems]" <sank89@sancharnet.in>)
Re: Primary key efficiency  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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)
);


В списке pgsql-novice по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Multiway associations
Следующее
От: "V i s h a l Kashyap @ [Sai Hertz And Control Systems]"
Дата:
Сообщение: Re: Primary key efficiency