Re: BUG #1316: Alter Name of a Serial Field won't change the corresponding SEQUENCE name

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1316: Alter Name of a Serial Field won't change the corresponding SEQUENCE name
Дата
Msg-id 20666.1100279992@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1316: Alter Name of a Serial Field won't change the corresponding SEQUENCE name  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Список pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> if I alter table atable alter field1 rename to field2
> it becomes atable(field2 Serial)
> however, the sequence stays: atable_field1_seq
> it's not tablename_fieldname_seq any more

It's intended to do that.

> This will cause problem when we restore a backup:

pg_dump in 8.0 has a workaround for this.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: "strange" rule behavior with nextval on new.* fields
Следующее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1317: plPHP does not recgnize booleans