CplNobbs··on Scalable incremental data aggregation on Postgres and CitusIsnt there a race condition ? you get the sequence before acquiring a lock.