varchar(n) and text

Поиск
Список
Период
Сортировка
От Yan Cheng Cheok
Тема varchar(n) and text
Дата
Msg-id 55336.61312.qm@web65707.mail.ac4.yahoo.com
обсуждение исходный текст
Ответы Re: varchar(n) and text  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
According to http://www.postgresql.org/docs/8.0/interactive/datatype-character.html

I always use TEXT, for column which store text so that I need not to worry on text length.

However, in certain situation, I know that my text length will always < 10 characters

I was wondering, if I using TEXT, will there have any overhead on

(1) storage space?
(2) query performance?
(3) write performance?

Shall I just use varchar(10) ?

Thanks!

Thanks and Regards
Yan Cheng CHEOK





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

Предыдущее
От: Yan Cheng Cheok
Дата:
Сообщение: Shall I apply normalization in the following case?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: varchar(n) and text