Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id EEDBC476336 for ; Mon, 20 May 2002 21:05:09 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id A895C47685B for ; Mon, 20 May 2002 20:17:18 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g4L0HGW16450; Mon, 20 May 2002 20:17:16 -0400 (EDT) To: nickf@ontko.com Cc: "pgsql-admin" , "Ray Ontko" Subject: Re: Is it safe to increase pg_attribute.atttypmod ? In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Mon, 20 May 2002 15:56:42 -0500" Date: Mon, 20 May 2002 20:17:15 -0400 Message-ID: <16447.1021940235@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200205/161 X-Sequence-Number: 4336 "Nick Fankhauser" 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