Re: alter table serial->int

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: alter table serial->int
Дата
Msg-id 7625.1194412270@sss.pgh.pa.us
обсуждение исходный текст
Ответ на alter table serial->int  ("Erik Aronesty" <erik@q32.com>)
Ответы Re: alter table serial->int  ("Erik Aronesty" <erik@q32.com>)
Список 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 по дате отправления:

Предыдущее
От: "j a"
Дата:
Сообщение: Re: Vacuum Doesn't Recover Disk Space
Следующее
От: rloefgren@forethought.net
Дата:
Сообщение: Re: Source of pgpool2 manual