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 4AE5A529E7 for ; Tue, 28 Jun 2005 11:31:11 -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 40687-09 for ; Tue, 28 Jun 2005 14:31:08 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 0C080529AA for ; Tue, 28 Jun 2005 11:31:07 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j5SEV64X085371 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 Jun 2005 08:31:08 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j5SEV6us024154; Tue, 28 Jun 2005 08:31:06 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j5SEV6xg024153; Tue, 28 Jun 2005 08:31:06 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 28 Jun 2005 08:31:06 -0600 From: Michael Fuhr To: Chuming Chen Cc: pgsql-admin@postgresql.org Subject: Re: change existing table definition Message-ID: <20050628143106.GA24109@winnie.fuhr.org> References: <42C15044.4030407@musc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42C15044.4030407@musc.edu> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/261 X-Sequence-Number: 18016 On Tue, Jun 28, 2005 at 09:27:32AM -0400, 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? See ALTER TABLE in the documentation and "How do you change a column's data type?" in the FAQ: http://www.postgresql.org/docs/8.0/static/sql-altertable.html http://www.postgresql.org/docs/faqs.FAQ.html#4.3 -- Michael Fuhr http://www.fuhr.org/~mfuhr/