Re: char() or varchar() for frequently used column

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: char() or varchar() for frequently used column
Дата
Msg-id web-1790025@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на char() or varchar() for frequently used column  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Список pgsql-novice
Jules,

> Are there any flaws in this approach? Will I get in trouble when
> using
> indexes. Will performance be hampered severely? (we're not talking
> about huge amounts of transactions)

On postgresql, there is no performance difference between CHAR and
VARCHAR.   And a VARCHAR(25) which only has 1 character in each row is
no slower than a VARCHAR(2) that has only one character.

-Josh Berkus

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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: information
Следующее
От: Tan ga
Дата:
Сообщение: How to extract hour and minutes from a timestamp