Re: changing field length

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: changing field length
Дата
Msg-id 20030819122924.O72868-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на changing field length  (Jodi Kanter <jkanter@virginia.edu>)
Список pgsql-admin
On Tue, 19 Aug 2003, Jodi Kanter wrote:

> I am running 7.3.3. Can I change a field that is varying character(128)
> to varying character(250)?

You can either add a column, copy the data across and drop the old column
and use rename to give the new column the old name or if you're willing
to hack at system tables, you can change atttypmod in pg_attribute for the
column from 132 (maxsize + 4 to hold the real size) to 254.


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

Предыдущее
От: "Gaetano Mendola"
Дата:
Сообщение: Re: changing field length
Следующее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: changing field length