Re: renaming+recreating table w/default sequence causes dependency seq issue

Поиск
Список
Период
Сортировка
От Todd Kover
Тема Re: renaming+recreating table w/default sequence causes dependency seq issue
Дата
Msg-id 201208082342.q78NgpB2019292@guinness.omniscient.com
обсуждение исходный текст
Ответ на Re: renaming+recreating table w/default sequence causes dependency seq issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> I don't see any bug there.  The ALTER DROP DEFAULT command does not
 > remove the sequence's dependence on foo.id; nor for that matter
 > does ALTER SET DEFAULT create an auto-drop dependency on the new
 > table.  See ALTER SEQUENCE OWNED BY if you want to dissociate a
 > serial column's sequence from the column, or reattach it to another
 > column.
 >
 > Formally speaking, a "serial column" is shorthand for creating an
 > integer (or bigint) column, creating a sequence, associating them as
 > though by ALTER SEQUENCE OWNED BY, and setting the column's default
 > to nextval('sequence-name').

I stand corrected.  It would be nice if \ds or \ds+ or something showed
this relationship so it was evident.  That's more of a feature request
than a bug fix tho.

apologies for the misdirection.

-Todd

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

Предыдущее
От: kargor
Дата:
Сообщение: Re: BUG #6722: Debugger broken?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #6722: Debugger broken?