X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5726552818 for ; Tue, 28 Jun 2005 11:14:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39178-03 for ; Tue, 28 Jun 2005 14:14:23 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 1AB5752A13 for ; Tue, 28 Jun 2005 11:14:22 -0300 (ADT) Received: (qmail invoked by alias); 28 Jun 2005 14:14:26 -0000 Received: from dsl-082-083-232-093.arcor-ip.net (EHLO colt.pezone.net) [82.83.232.93] by mail.gmx.net (mp023) with SMTP; 28 Jun 2005 16:14:26 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: chen@musc.edu Subject: Re: change existing table definition Date: Tue, 28 Jun 2005 16:14:25 +0200 User-Agent: KMail/1.8.1 Cc: pgsql-admin@postgresql.org References: <42C15044.4030407@musc.edu> In-Reply-To: <42C15044.4030407@musc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506281614.25981.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/259 X-Sequence-Number: 18014 Chuming Chen wrote: > How can I change the column definition of an existing table, ie. from > varchar(30) to varchar(50)? Is there any way to add a new column to > an existing table? The ALTER TABLE command can do all that. You need version 8.0 or later for some functionality though. -- Peter Eisentraut http://developer.postgresql.org/~petere/