Re: changing field length
От | Nick Fankhauser |
---|---|
Тема | Re: changing field length |
Дата | |
Msg-id | NEBBLAAHGLEEPCGOBHDGGEJLIAAA.nickf@ontko.com обсуждение исходный текст |
Ответ на | changing field length (Jodi Kanter <jkanter@virginia.edu>) |
Список | pgsql-admin |
Jodi- Here's an example of the "hack" approach, which I've used without causing any problems for some time: update pg_attribute set atttypmod = 104 where attrelid = ( select oid from pg_class where relname = 'actor' and attname = 'actor_full_name' ); In your case, you'd substitute 254 for 104, your table name for "actor" and your field name for "actor_full_name"; -Nick -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi Kanter Sent: Tuesday, August 19, 2003 1:34 PM To: Postgres Admin List Subject: [ADMIN] changing field length I am running 7.3.3. Can I change a field that is varying character(128) to varying character(250)? Thanks Jodi -- _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu <!--[if !supportLineBreakNewLine]--> <!--[endif]--> <!--[if !supportEmptyParas]--> <!--[endif]--> <!--[if !supportEmptyParas]--> <!--[endif]--> <!--[if !supportEmptyParas]--> <!--[endif]-->
В списке pgsql-admin по дате отправления: