string primary key

From: Mark Gibson <mark(at)gibsonsoftware(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: string primary key
Date: 2006-05-11 15:52:41
Message-ID: 44635DC9.1020206@gibsonsoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a disadvantage to having the primary key for a table be a text
type vs. an integer type? Performance? Any difference between having a
varchar or char as a primary key?

My instinct tells me that an integer is preferred, but I'm looking for a
more concrete answer.

Thanks,
Mark

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Oliva 2006-05-11 15:57:48 Re: Reindexdb
Previous Message Joshua D. Drake 2006-05-11 15:27:03 Re: Reindexdb