Integer keys vs. Varchar keys

Поиск
Список
Период
Сортировка
От David Link
Тема Integer keys vs. Varchar keys
Дата
Msg-id 3C07BA0F.995FD22@soundscan.com
обсуждение исходный текст
Ответы Re: Integer keys vs. Varchar keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Gregory Wood"
Дата:
Сообщение: Re: alter table
Следующее
От: Paul Stavrides
Дата:
Сообщение: Re: Initdb failure with PG 7.1.3 on RH 7.1...