Re: primary key and existing unique fields
От | Sally Sally |
---|---|
Тема | Re: primary key and existing unique fields |
Дата | |
Msg-id | BAY101-F12z1enAqpfk0000ecb7@hotmail.com обсуждение исходный текст |
Ответ на | primary key and existing unique fields ("Sally Sally" <dedeb17@hotmail.com>) |
Ответы |
Re: primary key and existing unique fields
|
Список | pgsql-general |
Dawid, I am interested in the first point you made that: having varchar(12) in every referencing table, takes more storage space. The thing is though, if I have a serial primary key then it would be an additional column. Or you are saying the space taken by a VARCHAR(12) field is more than two INT fields? ( or is it the fact that when it is referenced it will appear several times?) I guess the reason I am resisting the idea of an additional primary key field is to avoid the additional lookup in some queries. Perhaps it's a minor almost irrelevant performance factor. Thanks Sally _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee� Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
В списке pgsql-general по дате отправления: