X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id CDFCDD1B8B4 for ; Tue, 19 Aug 2003 21:38:54 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 29240-08 for ; Tue, 19 Aug 2003 21:38:47 -0300 (ADT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by svr1.postgresql.org (Postfix) with ESMTP id E3580D1CD1E for ; Tue, 19 Aug 2003 21:38:43 -0300 (ADT) Received: from 0-1pool116-81.nas15.indianapolis1.in.us.da.qwest.net ([65.128.116.81] helo=nick) by flamingo.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 19pGzu-00023H-00; Tue, 19 Aug 2003 17:38:46 -0700 Reply-To: From: "Nick Fankhauser" To: "Jodi Kanter" , "Postgres Admin List" Subject: Re: changing field length Date: Tue, 19 Aug 2003 19:37:38 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <3F426DB0.1040607@virginia.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/209 X-Sequence-Number: 9930 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