Sequence gaps after restart

Поиск
Список
Период
Сортировка
От Christopher Sumner
Тема Sequence gaps after restart
Дата
Msg-id CAGsV6K-FBr-xPXg4HXyjRJUk97LBJVSUg_mAyxWbzv9KrnbWjg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Sequence gaps after restart  (Magnus Hagander <magnus@hagander.net>)
Re: Sequence gaps after restart  (Rob Sargent <robjsargent@gmail.com>)
Re: Sequence gaps after restart  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello. 

I'm using PostgreSQL v. 10.14 via AWS Aurora Serverless.  Our users recently noticed gaps in the primary ids for many of our tables.  As I understand it, this is due to PostgreSQL effectively caching 32 additional sequence values (hardcoded in sequence.c ) and a 'restart' occurs.  Losing a few sequence values is normal and generally acceptable.  However, this problem seems to be exacerbated by the scaling events of Aurora Serverless as they require restarts of the Postgresql service. I do not allow AWS AS to force the scaling in our environment. When scaling events happen 10's of times per day, the loss is significant.  

Are there any plans to fix this issue or otherwise play nicely with Aurora Serverless?  

Thanks.

-Chris




 



This message may be confidential and privileged. Use or disclosure by anyone other than an intended addressee is prohibited. If you received this message in error, please delete it and advise the sender by reply email.

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

Предыдущее
От: Niels Jespersen
Дата:
Сообщение: SV: force partition pruning
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Sequence gaps after restart