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 0C6225293E for ; Tue, 28 Jun 2005 12:28:13 -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 54904-05 for ; Tue, 28 Jun 2005 15:28:10 +0000 (GMT) Received: from mail.libertyrms.com (unknown [207.219.45.62]) by svr1.postgresql.org (Postfix) with ESMTP id 5106B528B8 for ; Tue, 28 Jun 2005 12:28:09 -0300 (ADT) Received: from dba5.int.libertyrms.com ([10.1.3.44]) by mail.libertyrms.com with esmtp (Exim 4.22) id 1DnI0O-0003JQ-Mg for pgsql-admin@postgresql.org; Tue, 28 Jun 2005 11:28:08 -0400 Message-ID: <42C16C88.5060700@ca.afilias.info> Date: Tue, 28 Jun 2005 11:28:08 -0400 From: Brad Nicholson User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: change existing table definition References: <42C15044.4030407@musc.edu> <200506281614.25981.peter_e@gmx.net> <42C1613F.4000605@musc.edu> In-Reply-To: <42C1613F.4000605@musc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Mail-From: bnichols@ca.afilias.info X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.035 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/267 X-Sequence-Number: 18022 Chuming Chen wrote: > Peter Eisentraut wrote: > >> 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. >> >> >> > Is there another way to do it in 7.* ? > http://www.postgresql.org/docs/faqs.FAQ.html#4.3 > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org -- Brad Nicholson 416-673-4106 Database Administrator, Afilias Canada Corp.