Re: [PATCHES] ALTER SEQUENCE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] ALTER SEQUENCE
Дата
Msg-id 15514.1046823263@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] ALTER SEQUENCE  (Rod Taylor <rbt@rbt.ca>)
Ответы Re: [PATCHES] ALTER SEQUENCE  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-hackers
Rod Taylor <rbt@rbt.ca> writes:
> Might get somewhere by making a special domain thats marked as being
> serial, and using that in the column.

I recall some discussion last year about making serial et al. into
domains over int4 and int8, rather than their current utter-hack
implementation.  Can't recall if we found a problem with the idea,
or no one got around to doing it, or it just didn't seem to clean
things up enough to be worth the trouble.  (AFAICS you'd still need
special-case code to set up the appropriate default expression for
each column; the domain constraint mechanism wouldn't handle that
for you.)

Seems worth looking at, though.
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: test to be ignored ...
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: [PATCHES] ALTER SEQUENCE