pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: suresh@mithi.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Need to change the size of a field
Date: Mon, 18 Feb 2002 10:24:16 -0800 (PST)
Message-ID: <20020218102327.X75404-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <NFBBKGHMBKLDMDLMGGHBEENCCNAA.suresh@mithi.com>

On Mon, 18 Feb 2002 suresh@mithi.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.




view thread (4+ messages)

Message-ID: <20020218102327.X75404-100000@megazone23.bigpanda.com>
Permalink:  ../20020218102327.X75404-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020218102327.X75404-100000@megazone23.bigpanda.com

 · 

reply

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, suresh@mithi.com
  Subject: Re: Need to change the size of a field
  In-Reply-To: <20020218102327.X75404-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