Re: Advice on Contiguous IDs

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Advice on Contiguous IDs
Дата
Msg-id CAKFQuwbPWiAqu63fs3Ldx_ShaeBTYVmuGhR-E=yGDPVFv2qWXw@mail.gmail.com
обсуждение исходный текст
Ответ на Advice on Contiguous IDs  ("Brian McKiernan" <brian.mckiernan@firstcircle.com>)
Список pgsql-docs
On Tue, Jan 9, 2018 at 2:06 AM, Brian McKiernan <brian.mckiernan@firstcircle.com> wrote:
1) What event would cause the CACHE clause in CREATE SEQUENCE to make an out of sequence next number?

​None - it will always issue the next sequential value when asked.  But the transaction asking doesn't have to use the provided value as the PK for the table or, and even if it does, if the transaction fails and rolls-back the sequence value it received is discarded/lost.​
​David J.​

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

Предыдущее
От: Vik Fearing
Дата:
Сообщение: Re: libpq options
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Advice on Contiguous IDs