Re: full featured alter table?

Поиск
Список
Период
Сортировка
От Sven Köhler
Тема Re: full featured alter table?
Дата
Msg-id bcg00u$j83$2@main.gmane.org
обсуждение исходный текст
Ответ на Re: full featured alter table?  (weigelt@metux.de)
Ответы Re: full featured alter table?  (weigelt@metux.de)
Список pgsql-general
>>It'd be nice if it allows you to change the type from varchar(40)
>>to varchar(20) if you don't have any data that is larger than varchar(20).
>
> Yeah, and then an application comes in and wants to write more than
> 20 chars ...

why should i define a column as varchar(20) and should than want to
write more data than that?
i'd only define it as varchar(20) if i'm sure that 20 chars are enough.

> well, i dont like such size limitations at all - i'm using "text" instead.
> what about efficiency ? does it bring _anything_ to limit the size
> of varchar fields ?

well - than use text instead of varchar.


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

Предыдущее
От: Sven Köhler
Дата:
Сообщение: Re: full featured alter table?
Следующее
От: weigelt@metux.de
Дата:
Сообщение: Re: full featured alter table?