I have this sequence defined in postgres 9.6.11 running in AWS RDS
DROP SEQUENCE IF EXISTS org.my_seq;
CREATE SEQUENCE IF NOT EXISTS org.my_seq
INCREMENT 1
MINVALUE 1
NO MAXVALUE
START 1
CACHE 20;
This sequence is then invoked by Hibernate sequence generation strategy from within Spring boot application deployed within Docker container. The values generated are shown below. I am completely confused by why the values generated by this sequence are all over the place. I also noticed that every time I shut down my docker container, restart it, and test the application again, the values start to come from a whole different range. Any ideas as to why this may be happening?
-28 -27 -26 -25 -8 -7 1 2 52 53 72 92 93 94 112 113 132 133 152 172 192 193 212