From: murex971 (@murex971) <noreply+murex971@github.com>
To: pgdogdev/pgdog <noreply+pgdogdev-pgdog@github.com>
Subject: [pgdogdev/pgdog] PR #2069: refactor(frontend): carry comment spans on ClientRequest
Date: Thu, 19 Nov 2026 11:08:06 +0000
Message-ID: <gh-pgdogdev-pgdog-2069@github.com> (raw)
`parse_request` now copies the comment spans from the parsed `ClientQuery`
onto `ClientRequest` (`comment_spans`), alongside `routing_comment`.
### Why
The spans were recorded on `ClientQuery`
but dropped in `parse_request`, so nothing downstream could use them.
Enterprise QoS reads them from the request to avoid scanning the query for
comments a second time when the query parser is on.