Updating pg_attribute to widen column - Mailing list pgsql-general

From Justin Julicher
Subject Updating pg_attribute to widen column
Date
Msg-id CAL2Ts-N4dKdQkh4YoeQEpOvphQLrJwFKcg-4AgcJd6mjxOocJA@mail.gmail.com
Whole thread Raw
Responses Re: Updating pg_attribute to widen column  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-general

Psql Version: 8.4

Hi,

 

We need to widen a column on a table with millions of rows and the only way to do this currently is to migrate the data from one column to another with a script and trigger.

 

I know how to do this via an update to pg_attribute which would incur the table scan penalty but I have a number of questions is – 

  • Does postgres pick up this change straight away?
  • Are there any caveats to my first question? 


thanks,

Justin 


pgsql-general by date:

Previous
From: Gavan Schneider
Date:
Subject: Re: youtube video on pgsql integrity
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: Updating pg_attribute to widen column