Re: Q: Structured index - which one runs faster?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Q: Structured index - which one runs faster?
Дата
Msg-id 12259.1053648014@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Q: Structured index - which one runs faster?  (Ernest E Vogelsinger <ernest@vogelsinger.at>)
Список pgsql-admin
Ernest E Vogelsinger <ernest@vogelsinger.at> writes:
> Do you know if there's a general performance difference between numeric
> (int4) and character (fixed-size char[5]) columns? The ident1 and ident2
> columns are planned to be char[5], only the third column (with least
> precedence) will be numeric.

int4 is certainly faster to compare than char(n), but I wouldn't contort
your database design on that basis... if the idents aren't naturally
integers, don't force them to be.

            regards, tom lane

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

Предыдущее
От: Ernest E Vogelsinger
Дата:
Сообщение: Re: Q: Structured index - which one runs faster?
Следующее
От: "Mendola Gaetano"
Дата:
Сообщение: What is going on?