Re: Changing column data type on an existing table

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Changing column data type on an existing table
Дата
Msg-id 4285B419.5060108@archonet.com
обсуждение исходный текст
Ответ на Changing column data type on an existing table  (Joe Audette <joe_audette@yahoo.com>)
Список pgsql-general
Joe Audette wrote:
> Hi,
>
> I have an app that I released with a particular field
> as varchar 255.
>
> Can someone give me a script example I can use to make
> an upgrade script to change it to text or at least to
> larger varchar without losing existing data?

Others have answered for version 8.

If you are running one of the 7.x releases, you should google for
"pg_attribute atttypmod" and see how you can change that value to extend
varchars.

HTH

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Russell Smith
Дата:
Сообщение: Re: pgplsh on postgresql 8.0.2
Следующее
От: Jack Orenstein
Дата:
Сообщение: Why is psql \copy process stuck?