Re: renaming+recreating table w/default sequence causes dependency seq issue
В списке pgsql-bugs по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера