Re: elegant way to fill a table with serial

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: elegant way to fill a table with serial
Дата
Msg-id 3754.1196918163@sss.pgh.pa.us
обсуждение исходный текст
Ответ на elegant way to fill a table with serial  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
Ivan Sergio Borgonovo <mail@webthatworks.it> writes:
> ... BTW I saw there is no OWNED BY in 8.1, is there any other way to
> auto-drop sequences when columns get dropped?

In previous versions, a sequence object that was auto-created as a
result of a SERIAL column declaration will be auto-dropped when that
column is dropped.  8.2's OWNED BY syntax is just a way of exposing
that mechanism more formally, and letting you tweak the state.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.4 end of life
Следующее
От: "Chris Velevitch"
Дата:
Сообщение: Understanding how partial indexes work?