changing the size of a column without dump/restore - Mailing list pgsql-sql

From Michael Richards
Subject changing the size of a column without dump/restore
Date
Msg-id 3DE27298.00009B.07480@ns.interchange.ca
Whole thread Raw
Responses Re: changing the size of a column without dump/restore  (Roberto Mello <rmello@cc.usu.edu>)
List pgsql-sql
I've got a huge database table and I need to increase the size of a 
varchar from like 100 to 200 characters. As I recall the size is just 
a restriction and doesn't actually affect the format of the table 
file. 

Rather than dumping/restoring a 5Gb table with 20,000,000 rows which 
will take all day and night, is there anything I can twiddle in the 
system tables to change this size? I'd of course be backing up the 
data just in case!

-Michael
_________________________________________________________________   http://fastmail.ca/ - Fast Secure Web Email for
Canadians

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Question on SQL and pg_-tables
Next
From: Roberto Mello
Date:
Subject: Re: changing the size of a column without dump/restore