Re: Is it safe to increase pg_attribute.atttypmod ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is it safe to increase pg_attribute.atttypmod ?
Дата
Msg-id 16447.1021940235@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is it safe to increase pg_attribute.atttypmod ?  ("Nick Fankhauser" <nickf@ontko.com>)
Ответы Re: Is it safe to increase pg_attribute.atttypmod ?  ("Nick Fankhauser" <nickf@ontko.com>)
Список pgsql-admin
"Nick Fankhauser" <nickf@ontko.com> writes:
> The update to change a varchar(10) field to varchar(40) looked like this:

> update pg_attribute set atttypmod = 44
> where attrelid = ( select oid from pg_class where relname = 'test' )
> and attname = 'oldtest' ;

> Is this a smart thing to do?

Yup, that's the standard hack.

            regards, tom lane

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

Предыдущее
От: "Jameson C. Burt"
Дата:
Сообщение: Access by 1000 users to view postgres tables without recreating accounts?
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Is it safe to increase pg_attribute.atttypmod ?