Changing the size of a varchar field

Поиск
Список
Период
Сортировка
От Eric Ridge
Тема Changing the size of a varchar field
Дата
Msg-id E283A8CE-9F66-11D8-9FA4-000A95BB5944@tcdi.com
обсуждение исходный текст
Ответы Re: Changing the size of a varchar field  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Using PG 7.3.x, how stupid is this:

    UPDATE pg_attribute SET atttypmod=<new size + 4> WHERE ....;

I had to do this on a database, and surprisingly it seems to have
worked just fine.  The columns accept a larger value, the existing
values are still intact, and I've seen no other strange errors...

Am I living dangerously, or is this an "okay" thing to do?

eric


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Load Balancing and Backup
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Embedded SQL inherently faster than others?