Re: full featured alter table? - Mailing list pgsql-general

From Sven Köhler
Subject Re: full featured alter table?
Date
Msg-id bcg00u$j83$2@main.gmane.org
Whole thread Raw
In response to Re: full featured alter table?  (weigelt@metux.de)
Responses Re: full featured alter table?  (weigelt@metux.de)
List 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 by date:

Previous
From: Sven Köhler
Date:
Subject: Re: full featured alter table?
Next
From: weigelt@metux.de
Date:
Subject: Re: full featured alter table?