Re: Fixing a too long column value in a before insert trigger or rule - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Fixing a too long column value in a before insert trigger or rule
Date
Msg-id m28y2l9awr.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Fixing a too long column value in a before insert trigger or rule  (Csaba Nagy <nagy@ecircle-ag.com>)
List pgsql-general
Csaba Nagy <nagy@ecircle-ag.com> writes:

> Hi all,
>
> We have a situation where a varchar column was limited to a too small
> maximum length in the design phase... shit happens, we will fix our db
> schema in our next database downtime or software version deployment,
> whichever comes first (we are using 7.4 and on the fly column type
> change is only from 8.0 on I guess).

You can do surgery on the system catalogs in 7.4 if you need to change
the length of a varchar.  8.0 just put a nice ALTER TABLE interface on
top of it.  Read the system catalog docs and definitely try it on a
test database first.  :)

-Doug

pgsql-general by date:

Previous
From: Bob
Date:
Subject: Re: Rekall for Free
Next
From: Tom Lane
Date:
Subject: Re: SECURITY RELEASES: 7.2.8 - 7.3.10 - 7.4.8 - 8.0.3