Updating pg_attribute to change field's data type from integer to bigint on very large table - Mailing list pgsql-general

From Jeff Adams
Subject Updating pg_attribute to change field's data type from integer to bigint on very large table
Date
Msg-id CA+BdxK-MG+88wHbXRbeFNgJtFYnHdHb3xxejve_FSZP_6z=4Nw@mail.gmail.com
Whole thread Raw
Responses Re: Updating pg_attribute to change field's data type from integer to bigint on very large table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Greetings,

I have a very large table (approximately 1 billion records). I need to change a field's data type from integer to bigint. I started up an ALTER TABLE approach yesterday and it is still running (trying to rewrite the whole table?). I remember seeing mention of being able to do this in the pg_attribute table. Has anybody ever used the latter approach. If so, instructions would be greatly appreciated. Thanks...

Jeff


pgsql-general by date:

Previous
From: Bruno Lavoie
Date:
Subject: Re: recommended schema diff tools?
Next
From: "Albe Laurenz"
Date:
Subject: Re: aggregate arrays