Integer keys vs. Varchar keys - Mailing list pgsql-general

From David Link
Subject Integer keys vs. Varchar keys
Date
Msg-id 3C07BA0F.995FD22@soundscan.com
Whole thread Raw
Responses Re: Integer keys vs. Varchar keys
List 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

pgsql-general by date:

Previous
From: "Gregory Wood"
Date:
Subject: Re: alter table
Next
From: Paul Stavrides
Date:
Subject: Re: Initdb failure with PG 7.1.3 on RH 7.1...