| От | John R Pierce |
|---|---|
| Тема | Re: Difference between varchar and text? |
| Дата | |
| Msg-id | 50982E2E.2060704@hogranch.com обсуждение исходный текст |
| Ответ на | Difference between varchar and text? (Moshe Jacobson <moshe@neadwerx.com>) |
| Список | pgsql-general |
On 11/05/12 12:46 PM, Moshe Jacobson wrote: > Is there any practical difference between defining a column as a > varchar(n) vs. a varchar vs. a text field? varchar(n) has a length constraint on it. the other two don't. otherwise all three are identical in implementation. > > I've always been under the impression that if I am wanting to index a > varchar column, it is better to set a maximum length. Is this correct? no, unless you want to ensure the field will never exceed a specified length. > But more importantly, what's the practical difference between varchar > with no limit and text? none. -- john r pierce N 37, W 122 santa cruz ca mid-left coast
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера