| От | Joshua D. Drake |
|---|---|
| Тема | Re: Difference between varchar and text? |
| Дата | |
| Msg-id | 50982E64.9010403@commandprompt.com обсуждение исходный текст |
| Ответ на | Difference between varchar and text? (Moshe Jacobson <moshe@neadwerx.com>) |
| Список | pgsql-general |
On 11/05/2012 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? No except for your already noted exception that you can limit the size of varchar. > > 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. This entirely depends on what you are doing. JD -- Command Prompt, Inc. - http://www.commandprompt.com/ PostgreSQL Support, Training, Professional Services and Development High Availability, Oracle Conversion, Postgres-XC @cmdpromptinc - 509-416-6579
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера