Integer keys vs. Varchar keys

From: David Link <dlink(at)soundscan(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Integer keys vs. Varchar keys
Date: 2001-11-30 16:55:43
Message-ID: 3C07BA0F.995FD22@soundscan.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

What performance gains would an integer primary key have over a varchar
primary key, for table joins?

On a 100,000 record table joining with a 9,000 record table, there
appears to be no difference. Index Scan cost=0.00..4.51 in either case.

Would one expect it to make a difference with a 1,000,000 record table?

Thanks, David

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Stavrides 2001-11-30 17:18:27 Re: Initdb failure with PG 7.1.3 on RH 7.1...
Previous Message Gregory Wood 2001-11-30 16:44:12 Re: alter table