Just as in your favorite connection pooler (Odyssey or PgBouncer).