Re: altering a column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: altering a column
Дата
Msg-id 21924.1073280744@sss.pgh.pa.us
обсуждение исходный текст
Ответ на altering a column  (treat00@yahoo.com (Thomas Reat))
Список pgsql-general
treat00@yahoo.com (Thomas Reat) writes:
> I need to change a varchar(32) to varchar(1024). It is a primary key
> that many tables reference. How do I do this without reloading the
> entire database?

When your back is to the wall, you can hack the pg_attribute.atttypmod
for the column (this is sufficient in this particular case).  See
archives for discussion, and please heed the advice to experiment in
a scratch database.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: GetLastInsertID ?
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Is my MySQL Gaining ?