From: Robert Treat <xzilla@users.sourceforge.net>
To: Divya Jain <dijain@cisco.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: modifying system table
Date: 29 May 2003 10:35:13 -0400
Message-ID: <1054218913.5914.2373.camel@camel> (raw)
In-Reply-To: <4.3.2.7.2.20030528141514.03235970@mira-sjc5-5.cisco.com>
References: <4.3.2.7.2.20030528141514.03235970@mira-sjc5-5.cisco.com>
It's generally considered safe, but search the archives for the proper
formula so you get the results your hoping for. (IIRC its length + 4,
but I'd search just to be sure).
Robert Treat
On Wed, 2003-05-28 at 17:15, Divya Jain wrote:
> I'm running Postgres 7.2.4. A VARCHAR column in my schema needs to be longer than the currently defined max length. What is the best way to achieve this without adding a new column with the correct VARCHAR length ?
>
> One way I figured is to modify the pg_attribute table and set atttypmod to the correct value. Just want to know if there is any risk involved in doing this.
> Thanks
> Divya
>
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: xzilla@users.sourceforge.net, dijain@cisco.com
Subject: Re: modifying system table
In-Reply-To: <1054218913.5914.2373.camel@camel>
References: <4.3.2.7.2.20030528141514.03235970@mira-sjc5-5.cisco.com> <1054218913.5914.2373.camel@camel>
* 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