Skip site navigation (1) Skip section navigation (2)

string PK vs. interger PK

From: Jodi Kanter <jkanter(at)virginia(dot)edu>
To: Postgres Admin List <pgsql-admin(at)postgresql(dot)org>
Subject: string PK vs. interger PK
Date: 2002-04-15 18:56:20
Message-ID: 019201c1e4af$3b855c90$ (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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 string value? Does one or the other affect indexing speed? update speed? 
Is a serial integer value better than using a PK that has some "value" in its meaning but is a string?
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846





pgsql-admin by date

Next:From: Nick FankhauserDate: 2002-04-15 19:20:06
Subject: Re: string PK vs. interger PK
Previous:From: Neil ConwayDate: 2002-04-15 18:24:51
Subject: Re: Alter/update large tables - VERRRY annoying behaviour!

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group