X-Original-To: pgsql-admin@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 7A6B7925C73 for ; Thu, 29 May 2003 10:35:23 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 70547-10 for ; Thu, 29 May 2003 10:35:22 -0400 (EDT) Received: from localhost.localdomain (unknown [65.217.53.66]) by developer.postgresql.org (Postfix) with ESMTP id C1CF3925C61 for ; Thu, 29 May 2003 10:35:21 -0400 (EDT) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h4TFPQM3031103; Thu, 29 May 2003 11:25:26 -0400 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h4TEZEL15866; Thu, 29 May 2003 10:35:14 -0400 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2YCP5YZW; Thu, 29 May 2003 10:35:12 -0400 Subject: Re: modifying system table From: Robert Treat To: Divya Jain Cc: pgsql-admin@postgresql.org In-Reply-To: <4.3.2.7.2.20030528141514.03235970@mira-sjc5-5.cisco.com> References: <4.3.2.7.2.20030528141514.03235970@mira-sjc5-5.cisco.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 29 May 2003 10:35:13 -0400 Message-Id: <1054218913.5914.2373.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/402 X-Sequence-Number: 8964 It's generally considered safe, but search the archives for the proper formula so you get the results your hoping for. (IIRC its length + 4, but I'd search just to be sure). Robert Treat On Wed, 2003-05-28 at 17:15, Divya Jain wrote: > I'm running Postgres 7.2.4. A VARCHAR column in my schema needs to be longer than the currently defined max length. What is the best way to achieve this without adding a new column with the correct VARCHAR length ? > > One way I figured is to modify the pg_attribute table and set atttypmod to the correct value. Just want to know if there is any risk involved in doing this. > Thanks > Divya >