Re: Getting consecutive sequence values

Поиск
Список
Период
Сортировка
От nolan@celery.tssi.com
Тема Re: Getting consecutive sequence values
Дата
Msg-id 20030404205336.28434.qmail@celery.tssi.com
обсуждение исходный текст
Ответ на Getting consecutive sequence values  (nolan@celery.tssi.com)
Ответы Re: Getting consecutive sequence values  (Dave Smith <dave.smith@candata.com>)
Re: Getting consecutive sequence values  ("Ed L." <pgsql@bluepolka.net>)
Список pgsql-general
> 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


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

Предыдущее
От: Jonathan Bartlett
Дата:
Сообщение: Factoring where clauses through unions
Следующее
От: Dave Smith
Дата:
Сообщение: Re: Getting consecutive sequence values