From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: tinar <tinarajraj@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to chane the type
Date: Thu, 6 Dec 2001 08:31:09 -0800 (PST)
Message-ID: <20011206082604.Y25449-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <DAV16M31Md40810sPbX000125d1@hotmail.com>
On Wed, 5 Dec 2001, tinar wrote:
> i have created a table
> userlist with fields username varchar(10)
> now i want to change it to username varchar(30)
> without dropping or recreating the table.
> how do i do it?
The best way is to recreate the table and rename
them around. If you *REALLY* don't want to do
that and have a recent backup (yes, I'm serious),
you can muck with pg_attribute and change
atttypmod for the attribute in question
(from 14 to 34).
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, tinarajraj@hotmail.com
Subject: Re: how to chane the type
In-Reply-To: <20011206082604.Y25449-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox