Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: > The real problem here is the fact that there are now missing attnos in > pg_attribute. Either that's handled or we renumber the attnos - which is > also quite hard?
Updating pg_attribute per se is not so hard --- just store new copies of all the rows for the table. However, propagating the changes into other places could be quite painful (I'm thinking of column numbers in stored constraints, rules, etc). It seems to me that reducing the column to NULLs already gets you the majority of the space savings. I don't think there is a case to be made that getting back that last bit is worth the pain involved, either in implementation effort or direct runtime costs (do you really want a DROP COLUMN to force an immediate rewrite of the whole table?) regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster