Re: change existing table definition - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: change existing table definition
Date
Msg-id 200506281614.25981.peter_e@gmx.net
Whole thread Raw
In response to change existing table definition  (Chuming Chen <chen@musc.edu>)
Responses Re: change existing table definition  (Chuming Chen <chen@musc.edu>)
Re: change existing table definition  (Chuming Chen <chen@musc.edu>)
List pgsql-admin
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/

pgsql-admin by date:

Previous
From: Ian FREISLICH
Date:
Subject: Re: How to compare the schemas ?
Next
From: Chuming Chen
Date:
Subject: Re: change existing table definition