Re: full featured alter table?

From: Sven Köhler <skoehler(at)upb(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: full featured alter table?
Date: 2003-06-14 20:21:16
Message-ID: bcg00u$j83$2@main.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message weigelt 2003-06-14 20:32:34 Re: full featured alter table?
Previous Message Sven Köhler 2003-06-14 20:18:30 Re: full featured alter table?