text vs varchar(n)

Поиск
Список
Период
Сортировка
От Richard Emberson
Тема text vs varchar(n)
Дата
Msg-id 3C70969E.1C87D77@phc.net
обсуждение исходный текст
Ответы Re: text vs varchar(n)
Re: text vs varchar(n)
Список pgsql-general
Couple of questions:

If ones sets up the db to be UNICODE, does that also apply to the 'text'
type?

Which is faster read and write, a table with text or varchar types:

create table text_table (
id   bigint,
value text
);

or

create table varchar_table(
id bigint,
value varchar(1024)
);

Why would one every use varchar(n) instead of text (aside from non-sql
standard)?

Thanks.

Richard


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Database Performance?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: calculating spherical distance in sql