pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jodi Kanter <jkanter@virginia.edu>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: string PK vs. interger PK
Date: Mon, 15 Apr 2002 14:56:20 -0400
Message-ID: <019201c1e4af$3b855c90$de138f80@virginia.edu> (raw)

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?
Thanks
Jodi
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu



 

 

 

view thread (4+ messages)  latest in thread

Message-ID: <019201c1e4af$3b855c90$de138f80@virginia.edu>
Permalink:  ../019201c1e4af$3b855c90$de138f80@virginia.edu/
Also on:    postgresql.org/message-id/019201c1e4af$3b855c90$de138f80@virginia.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jkanter@virginia.edu
  Subject: Re: string PK vs. interger PK
  In-Reply-To: <019201c1e4af$3b855c90$de138f80@virginia.edu>
  References: <019201c1e4af$3b855c90$de138f80@virginia.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox