Native PostgreSQL driver for the Rust programming language
This report summarizes scanner evidence for rust-postgres/rust-postgres, a Rust project with 4,028 GitHub stars. SynthScan examined 29,556 lines of code across 156 source files, recording 99 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 3.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 99 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 99 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 99 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tokio-postgres/src/types.rs | 1 | //! Types. | COMMENT |
| LOW | tokio-postgres/src/client.rs | 61 | COMMENT | |
| LOW | tokio-postgres/src/client.rs | 381 | return Err(Error::column_count()); | COMMENT |
| LOW | tokio-postgres/src/client.rs | 401 | /// ```no_run | COMMENT |
| LOW | tokio-postgres/src/client.rs | 521 | /// their Postgres type. Thus, this is suitable in environments where prepared statements aren't | COMMENT |
| LOW | tokio-postgres/src/client.rs | 541 | /// let mut it = pin!(client.query_typed_raw( | COMMENT |
| LOW | tokio-postgres/src/client.rs | 641 | /// PostgreSQL does not support parameters in `COPY` statements, so this method does not take any. | COMMENT |
| LOW | tokio-postgres/src/client.rs | 661 | /// functionality to safely embed that data in the request. Do not form statements via string concatenation and pass | COMMENT |
| LOW | tokio-postgres/src/client.rs | 681 | simple_query::simple_query(self.inner(), query).await | COMMENT |
| LOW | tokio-postgres/src/config.rs | 41 | } | COMMENT |
| LOW | tokio-postgres/src/config.rs | 81 | /// Load balancing configuration. | COMMENT |
| LOW | tokio-postgres/src/config.rs | 101 | } | COMMENT |
| LOW | tokio-postgres/src/config.rs | 121 | /// * `host` - The host to connect to. On Unix platforms, if the host starts with a `/` character it is treated as the | COMMENT |
| LOW | tokio-postgres/src/config.rs | 141 | /// * If `hostaddr` is specified without `host`, the value for `hostaddr` gives the server network address. | COMMENT |
| LOW | tokio-postgres/src/config.rs | 161 | /// * `keepalives_retries` - The maximum number of TCP keepalive probes that will be sent before dropping a connection. | COMMENT |
| LOW | tokio-postgres/src/config.rs | 181 | /// | COMMENT |
| LOW | tokio-postgres/src/config.rs | 201 | /// ## Examples | COMMENT |
| LOW | tokio-postgres/src/lib.rs | 1 | //! An asynchronous, pipelined, PostgreSQL client. | COMMENT |
| LOW | tokio-postgres/src/lib.rs | 21 | //! } | COMMENT |
| LOW | tokio-postgres/src/lib.rs | 41 | //! polled, not in the order that their futures are created. | COMMENT |
| LOW | tokio-postgres/src/lib.rs | 61 | //! | | process query 3 | | COMMENT |
| LOW | tokio-postgres/src/lib.rs | 81 | //! client.prepare("SELECT * FROM foo"), | COMMENT |
| LOW | tokio-postgres/src/lib.rs | 101 | //! | COMMENT |
| LOW | tokio-postgres/src/lib.rs | 241 | /// Notices use the same format as errors, but aren't "errors" per-se. | COMMENT |
| LOW | tokio-postgres/src/cancel_token.rs | 21 | /// Attempts to cancel the in-progress query on the connection associated | COMMENT |
| LOW | tokio-postgres/src/error/mod.rs | 261 | /// If the error was associated with a specific table, the name of the | COMMENT |
| LOW | postgres-openssl/src/lib.rs | 1 | //! TLS support for `tokio-postgres` and `postgres` via `openssl`. | COMMENT |
| LOW | postgres-openssl/src/lib.rs | 21 | //! | COMMENT |
| LOW | postgres-protocol/src/lib.rs | 1 | //! Low level Postgres protocol APIs. | COMMENT |
| LOW | postgres-protocol/src/escape/mod.rs | 1 | //! Provides functions for escaping literals and identifiers for use | COMMENT |
| LOW | postgres-protocol/src/escape/mod.rs | 61 | // identifier. | COMMENT |
| LOW | postgres-protocol/src/password/mod.rs | 41 | // 4013](https://tools.ietf.org/html/rfc4013), if possible. | COMMENT |
| LOW | postgres-protocol/src/message/mod.rs | 1 | //! Postgres message protocol support. | COMMENT |
| LOW | postgres-protocol/src/authentication/sasl.rs | 121 | }, | COMMENT |
| LOW | postgres-native-tls/src/lib.rs | 1 | //! TLS support for `tokio-postgres` and `postgres` via `native-tls`. | COMMENT |
| LOW | postgres-native-tls/src/lib.rs | 21 | //! "host=localhost user=postgres sslmode=require", | COMMENT |
| LOW | postgres-native-tls/src/lib.rs | 41 | //! let connector = TlsConnector::builder() | COMMENT |
| LOW | codegen/src/errcodes.txt | 1 | # | COMMENT |
| LOW | codegen/src/errcodes.txt | 21 | # doc/src/sgml/errcodes-table.sgml | COMMENT |
| LOW | codegen/src/errcodes.txt | 41 | # Section: section description | COMMENT |
| LOW | codegen/src/errcodes.txt | 61 | # The SQL spec requires that all the elements of a SQLSTATE code be | COMMENT |
| LOW | postgres/src/client.rs | 41 | params.parse::<Config>()?.connect(tls_mode) | COMMENT |
| LOW | postgres/src/client.rs | 61 | /// | COMMENT |
| LOW | postgres/src/client.rs | 81 | T: ?Sized + ToStatement, | COMMENT |
| LOW | postgres/src/client.rs | 101 | /// | COMMENT |
| LOW | postgres/src/client.rs | 121 | query: &str, | COMMENT |
| LOW | postgres/src/client.rs | 141 | /// | COMMENT |
| LOW | postgres/src/client.rs | 161 | /// | COMMENT |
| LOW | postgres/src/client.rs | 181 | /// let foo: i32 = row.get("foo"); | COMMENT |
| LOW | postgres/src/client.rs | 201 | /// The `query` argument can either be a `Statement`, or a raw query string. If the same statement will be | COMMENT |
| LOW | postgres/src/client.rs | 241 | /// | COMMENT |
| LOW | postgres/src/client.rs | 261 | /// ``` | COMMENT |
| LOW | postgres/src/client.rs | 321 | /// | COMMENT |
| LOW | postgres/src/client.rs | 341 | COMMENT | |
| LOW | postgres/src/client.rs | 361 | } | COMMENT |
| LOW | postgres/src/client.rs | 381 | /// # let mut client = Client::connect("host=localhost user=postgres", NoTls)?; | COMMENT |
| LOW | postgres/src/client.rs | 401 | P: BorrowToSql, | COMMENT |
| LOW | postgres/src/client.rs | 421 | /// let mut client = Client::connect("host=localhost user=postgres", NoTls)?; | COMMENT |
| LOW | postgres/src/client.rs | 441 | /// | COMMENT |
| LOW | postgres/src/client.rs | 461 | /// # Ok(()) | COMMENT |
| 38 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | postgres-types/src/lib.rs | 131 | //! `#[postgres(name = "...")]` takes precendence when used in conjunction with `#[postgres(rename_all = "...")]`: | COMMENT |