Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support sequences #4
Having the sequence live on the master is essentially a must right now, as
Right now we eagerly evaluate any "constant expressions" during planning, e.g. we transform
For the immediate future, we could expand the types of expressions we eagerly evaluate, or even offer a special
Jason: there's some stuff buried in the Bi-directional replication code which allows replicas to pull "chunks" of sequences, in effect allowing for distributed sequences. However, this doesn't at all solve the consistency issue between shards.
Maybe we'd be better off implementing a UUID which is compatible with pg_shard instead, something which will be consistent yet unique across shards. Not quite sure how that would work, though.