# The lifecycle of a sharded Postgres query

DevFeed: [The lifecycle of a sharded Postgres query](<https://devfeed.tech/articles/the-lifecycle-of-a-sharded-postgres-query-2338.md>)

Original publisher: [Read original article](<https://planetscale.com/blog/the-lifecycle-of-a-sharded-postgres-query>)

Author: PlanetScale

Published: 2026-09-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog -- PlanetScale](<https://devfeed.tech/sources/blog-planetscale.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [networking](<https://devfeed.tech/topics/networking.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [auth](<https://devfeed.tech/tags/auth.md>), [database](<https://devfeed.tech/tags/database.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [neki](<https://devfeed.tech/tags/neki.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [routing](<https://devfeed.tech/tags/routing.md>), [scale](<https://devfeed.tech/tags/scale.md>), [server](<https://devfeed.tech/tags/server.md>), [sql](<https://devfeed.tech/tags/sql.md>)

## AI overview

An overview of how a SQL query moves through a sharded Postgres database, from authentication and routing to execution across shards.

## Source excerpt

Follow a SQL query through the router, across four Postgres shards, and back.