| От | Jean-Michel POURE |
|---|---|
| Тема | Re: [pgadmin-hackers] Fwd: Re: Howto change column |
| Дата | |
| Msg-id | 4.2.0.58.20011107175017.00a78c20@pop.freesurf.fr обсуждение |
| Ответы |
Re: [pgadmin-hackers] Fwd: Re: Howto change column
|
| Список | pgsql-general |
At 14:46 07/11/01 +0000, you wrote: > > >If you're willing to do a little magic to the system tables (and you > > >have a recent backup :) ). You can change the atttypmod of > > the column > > >in question from 14 to 24. This really only works on > > variable length > > >items and only to expand them, but... > > > > > >You pretty much need to do a sequence like: > > >select oid, relname from pg_class where > > relname='<tablename>'; update > > >pg_attribute set atttypmod=24 where attrelid=<oid from previous> > > > and attname='<attributename>' > > >in a superuser account. > >Though technically correct, that sounds like a recipe for disaster! Of >course, the atttypmod doesn't always relate directly to the length of the >column, and even when it does, it's usually length+4 > >Regards, Dave.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера