Re: Which character data type to use?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Which character data type to use?
Дата
Msg-id Pine.LNX.4.30.0012121701590.1538-100000@peter.localdomain
обсуждение исходный текст
Ответ на Which character data type to use?  (martin.chantler@convergys.com)
Список pgsql-general
martin.chantler@convergys.com writes:

> For storing character data such as surname, email address which
> is the best data type to use?

See FAQ item 4.15.  VARCHAR is my suggestion.

> Can each of these be indexed???

Yes

> Which of these is fastest considering hard disks are so cheap I don't much care
> about which takes the most bytes!

You're dead wrong if you're thinking that way.  The issue is not that hard
disk space is cheap, it's that cache memory is scarce.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: "JAMES"
Дата:
Сообщение: Re: Query problem
Следующее
От: "Nathan Suderman"
Дата:
Сообщение: conversion