← Thursday, October 15, 2026ArchitectureDeep dive

Neki implements Postgres sequence semantics across shards

planetscale.com by Mats Rydberg 13 min read Editor score 7/10

The piece examines how PlanetScale’s sharded Postgres system handles volatile expressions and synchronous evaluation across shards to match native Postgres sequences. These semantics matter when adapting familiar database behavior to distributed query planning and execution.

What
Neki, PlanetScale’s sharded Postgres, implements sequences to match native Postgres semantics across its sharded system.
How
In general query planning, shards return raw rows to a router, which concatenates the rowsets and returns the full result to the client.
Why it matters
Distributed query planning must account for SQL semantics and data topology; sequence handling is a case where the excerpt says centralized control is needed.
rowsets full result shard router client
In the general query-planning case, shards return rows to the router, which assembles the client result. Sketched from the article's own text.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.