Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id 46254478DF6 for ; Mon, 15 Apr 2002 14:52:33 -0400 (EDT) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa13556; 15 Apr 2002 14:52 EDT Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.9.3/8.9.3) with SMTP id OAA09040 for ; Mon, 15 Apr 2002 14:52:28 -0400 Message-ID: <019201c1e4af$3b855c90$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: string PK vs. interger PK Date: Mon, 15 Apr 2002 14:56:20 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_018F_01C1E48D.B4522AD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200204/136 X-Sequence-Number: 4024 This is a multi-part message in MIME format. ------=_NextPart_000_018F_01C1E48D.B4522AD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Can anyone offer some insight as to what should be considered when choosing= between a primary key that is an integer vs. a primary key that is a strin= g value? Does one or the other affect indexing speed? update speed?=20 Is a serial integer value better than using a PK that has some "value" in i= ts meaning but is a string? Thanks Jodi _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_018F_01C1E48D.B4522AD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Can anyone offer some insight as to wha= t=20 should be considered when choosing between a primary key that is an integer= vs.=20 a primary key that is a string value? Does one or the other affect indexing= =20 speed? update speed?
Is a serial integer value better than u= sing a=20 PK that has some "value" in its meaning but is a string?
Thanks
Jodi

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_018F_01C1E48D.B4522AD0--