X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9B17F4762CF for ; Wed, 26 Mar 2003 03:08:38 -0500 (EST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id 551564762E0 for ; Wed, 26 Mar 2003 03:08:36 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Wed Mar 26 09:08:35 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id JAA19918; Wed, 26 Mar 2003 09:08:34 +0100 (MET) Message-ID: <3E816001.90019E7A@rodos.fzk.de> Date: Wed, 26 Mar 2003 09:08:34 +0100 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Cc: atul@imcindia.net, xzilla@users.sourceforge.net, Andreas.Pflug@web.de Subject: Re: How to increase Column width of table Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-10.4 required=5.0 tests=BAYES_01,QUOTED_EMAIL_TEXT,QUOTE_TWICE_1 autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/573 X-Sequence-Number: 12611 > > http://fts.postgresql.org/db/mw/msg.html?mid=1071582 > resp. > > You can rename your old column, create a new column varchar(100), update > ... set newCol=oldCol, drop oldCol and rename newCol to oldCol > See ALTER TABLE doc for this. > Ok, this is the accurate solution to minimize side effects. Thanks to Robert and Andreas for pointing this out. Regards, Christoph