Re: Getting consecutive sequence values

Поиск
Список
Период
Сортировка
От Dave Smith
Тема Re: Getting consecutive sequence values
Дата
Msg-id 3E8DF3BC.8080609@candata.com
обсуждение исходный текст
Ответ на Re: Getting consecutive sequence values  (nolan@celery.tssi.com)
Ответы Re: Getting consecutive sequence values
Список pgsql-general
I'm assuming that the setval would create an exclusive lock on the
sequence until it is complete. Tom/Bruce?


nolan@celery.tssi.com wrote:

>>select setval('id',nextval('id')+100)
>>
>>
>
>That's certainly tidier than my lengthy SQL statement, but I don't know
>that it solves the concurrent access issue.  What happens if a 2nd call
>to nextval is issued at the same time?
>--
>Mike Nolan
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>
>


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

Предыдущее
От: nolan@celery.tssi.com
Дата:
Сообщение: Re: Getting consecutive sequence values
Следующее
От: "Ed L."
Дата:
Сообщение: Re: dbmirror revisions