new serial type

Поиск
Список
Период
Сортировка
От Rolf Johansson
Тема new serial type
Дата
Msg-id 7j3denn367.fsf@junk.nocrew.org
обсуждение исходный текст
Ответы Re: new serial type
Список pgsql-sql
Is there some function to change the serial type to, instead of reading
a next-value, read the maxium value in a column and then add x? If, for
some reason, the sequence is not updated (when I'm doing COPY into a
table), I'll have to recreate the sequence. Instead, it would be much
more simple just to take the max()+x value for a new type of serial type.

/Rolf


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

Предыдущее
От: Najm Hashmi
Дата:
Сообщение: pl/pgsql Limits
Следующее
От: Kaare Rasmussen
Дата:
Сообщение: Re: new serial type