Re: alter table serial->int - Mailing list pgsql-admin

From Tom Lane
Subject Re: alter table serial->int
Date
Msg-id 7625.1194412270@sss.pgh.pa.us
Whole thread Raw
In response to alter table serial->int  ("Erik Aronesty" <erik@q32.com>)
Responses Re: alter table serial->int  ("Erik Aronesty" <erik@q32.com>)
List pgsql-admin
"Erik Aronesty" <erik@q32.com> writes:
> for some odd reason when i try to change a table fromserial to just
> plain "int with a default" postgres seems to ignore me.

What PG version?

I'd expect this to work somewhat sanely in 8.2, but in earlier versions
fooling with the default expression for a serial column is not well
supported.

> alter table custom alter id type int;

The fact that you even tried that suggests that you don't understand
very well what "serial" is.  See the manual ...

            regards, tom lane

pgsql-admin by date:

Previous
From: "j a"
Date:
Subject: Re: Vacuum Doesn't Recover Disk Space
Next
From: rloefgren@forethought.net
Date:
Subject: Re: Source of pgpool2 manual