Re: Need to change the size of a field

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: <suresh(at)mithi(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Need to change the size of a field
Date: 2002-02-18 18:24:16
Message-ID: 20020218102327.X75404-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 18 Feb 2002 suresh(at)mithi(dot)com wrote:

> Hi
>
> I have a table with one of the fields as a varchar(32) field. This table has
> about 100,000 records.
> I want to increase the size of the varchar field to 64. How can this be done
> without affecting the data already present ?

Dump and restore after changing the field length is usually easiest, but
if you don't mind a little hacking in the system tables, check out the
archives and you'll find the particular recipe for doing it.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kristian Eide 2002-02-18 18:54:42 Why is my index not used
Previous Message Shane Wright 2002-02-18 16:37:38 Re: table locking