Re: Field sizes and structure

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Field sizes and structure
Дата
Msg-id 20021210052355.GC20231@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Field sizes and structure  ("Williams, Travis L, NPONS" <tlw@att.com>)
Список pgsql-general
On Mon, Dec 09, 2002 at 06:04:57PM -0500, Williams, Travis L, NPONS wrote:
> do a \h on alter table (in psql) and you will get a big list of examples
> of how to alter a table.. so you can change it from say varchar(5) to
> varchar(25)..

No, that case isn't covered.  You have to mess with pg_attribute's
atttypmod field for the attribute you want to change, manually.  Note
that for VARCHAR and the like, it's length+4.  Don't try to change it
without backups... or you will suffer the consequences (if you backup,
however, nothing harmful will happen -- this is a law of nature).

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El conflicto es el camino real hacia la union"

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

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: publicly available PostGreSQL server?
Следующее
От: Çağıl Şeker
Дата:
Сообщение: md5 hash question (2)