Hacking the Postgres wire protocol
PgDog is a network proxy and it can see every byte sent between Postgres and the clients. It understands SQL and can infer where queries should go, without requiring changes to application code.
https://pgdog.dev/blog/hacking-postgres-wire-protocol