| От | Tom Lane |
|---|---|
| Тема | Re: Dropping sequences |
| Дата | |
| Msg-id | 24315.1101847937@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Dropping sequences (Robert Fitzpatrick <robert@webtent.com>) |
| Список | pgsql-general |
Robert Fitzpatrick <robert@webtent.com> writes:
> I have changed the default sequence on a primary key integer (created as
> SERIAL) field in a table, but it will not let me drop the old sequence
> and continues to tell me that the sequence is required by the table. Can
> someone tell me what is required to get this dropped?
Theoretically you have to drop the serial column.
If you don't mind mucking with system catalogs, you could remove the
pg_depend entry linking the sequence to the column, and then it would
let you drop the sequence.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера