I have table with an int
type column, in a table of ~ 15 M rows.
OS windows 7 and C disk (where postgres is installed) shows that:
59 GB free of 238 GB
Then I changed this column type to bigint
:
ALTER TABLE mytable ALTER column col TYPE bigint;
And now, C disk:
61 GB free of 238 GB
How are 2 GB freed? Looks like that bigint
would take less space than int
? Or what happened?
There is no other processes on this machine (this is local/home computer) at this moment.