Re: Problem with Altering a table column
Tom Lane <[email protected]> Thu, 19 Dec 2019 08:48:43 -0500
| Newsgroups | gmane.comp.db.postgresql.admin |
|---|---|
| Message-ID | <[email protected]> |
Douglas Reed <[email protected]> writes: > I have issued and alter column against the following; > =C2=A0price_id=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| integer=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| not null defa= ult nextval('bet.price_price_id_seq'::regclass) | plain=C2=A0 =C2=A0|=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | > ALTER TABLE bet.price ALTER COLUMN price_id TYPE bigint; > The process has taken a very long time, I know that it is rebuilding the= table and a lot of temp files have been created, deleted etc > It now seems to have gone quiet (no temp disk files etc), it still seems= to be clicking up CPU > - Is there a final part of the process where it may just be doing valida= tion etc? Foreign key revalidation maybe ... does this column participate in any foreign keys? > - Is it safe to terminate the process? Yeah, but you'd lose all the work done so far. regards, tom lane