string primary key

Поиск
Список
Период
Сортировка
От Mark Gibson
Тема string primary key
Дата
Msg-id 44635DC9.1020206@gibsonsoftware.com
обсуждение исходный текст
Ответы Re: string primary key  (Scott Marlowe <smarlowe@g2switchworks.com>)
Re: string primary key  (Bruno Wolff III <bruno@wolff.to>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Debugging SQL queries
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: string primary key