pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedmodifying system table
2+ messages / 2 participants
[nested] [flat]
* modifying system table
@ 2003-05-28 21:15 Divya Jain <dijain@cisco.com>
0 siblings, 1 reply; 2+ messages in thread
From: Divya Jain @ 2003-05-28 21:15 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: modifying system table
@ 2003-05-29 14:35 Robert Treat <xzilla@users.sourceforge.net>
parent: Divya Jain <dijain@cisco.com>
0 siblings, 0 replies; 2+ messages in thread
From: Robert Treat @ 2003-05-29 14:35 UTC (permalink / raw)
To: Divya Jain <dijain@cisco.com>; +Cc: pgsql-admin
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
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-29 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 21:15 modifying system table Divya Jain <dijain@cisco.com>
2003-05-29 14:35 ` Robert Treat <xzilla@users.sourceforge.net>
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