| От | Tom Lane |
|---|---|
| Тема | Re: How to drop sequence? |
| Дата | |
| Msg-id | 18702.1078185554@sss.pgh.pa.us обсуждение |
| Ответ на | Re: How to drop sequence? (Ron St-Pierre <rstpierre@syscor.com>) |
| Список | pgsql-general |
Ron St-Pierre <rstpierre@syscor.com> writes:
> Does anyone know if this is the way this is supposed
> to work,
Yes it is. The fact that there is a sequence involved in a SERIAL
column is really an implementation detail that you're not supposed to
muck with. Thus the dependency is on the column itself; drop the column
if you want to make the sequence go away.
(There should probably be some defense against letting you mess with the
column default expression, too, but we don't have one at the moment.)
If this isn't how you'd like things to work, don't use the SERIAL
shorthand. Create the sequence yourself.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера