From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: changing field length
Date: Tue, 19 Aug 2003 12:33:00 -0700 (PDT)
Message-ID: <20030819122924.O72868-100000@megazone.bigpanda.com> (raw)
In-Reply-To: <3F426DB0.1040607@virginia.edu>
On Tue, 19 Aug 2003, Jodi Kanter wrote:
> I am running 7.3.3. Can I change a field that is varying character(128)
> to varying character(250)?
You can either add a column, copy the data across and drop the old column
and use rename to give the new column the old name or if you're willing
to hack at system tables, you can change atttypmod in pg_attribute for the
column from 132 (maxsize + 4 to hold the real size) to 254.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sszabo@megazone.bigpanda.com, jkanter@virginia.edu
Subject: Re: changing field length
In-Reply-To: <20030819122924.O72868-100000@megazone.bigpanda.com>
References: <3F426DB0.1040607@virginia.edu> <20030819122924.O72868-100000@megazone.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