Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 93127650548 for ; Thu, 10 Jul 2008 10:58:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 01583-01 for ; Thu, 10 Jul 2008 10:57:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 8EF13650562 for ; Thu, 10 Jul 2008 10:58:03 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-95-31-93.bk17-dsl.surnet.cl [190.95.31.93]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m6AE09cD021291 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Jul 2008 07:00:12 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2031047C7E; Thu, 10 Jul 2008 09:57:56 -0400 (CLT) Date: Thu, 10 Jul 2008 09:57:56 -0400 From: Alvaro Herrera To: Ow Mun Heng Cc: Mario Weilguni , Pgsql performance Subject: Re: Altering a column type - Most efficient way Message-ID: <20080710135756.GD3757@alvh.no-ip.org> References: <1215676380.15319.2.camel@neuromancer.home.net> <4875C9FA.7020101@sime.com> <1215682481.15319.14.camel@neuromancer.home.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1215682481.15319.14.camel@neuromancer.home.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 10 Jul 2008 07:00:14 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/92 X-Sequence-Number: 30692 Ow Mun Heng wrote: > This is what I see on the table > > NEW attypmod = -1 > OLD attypmod = 8 8 means varchar(4) which is what you said you had (4+4) -1 means unlimited size. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.