Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
This report presents the forensic synthetic code analysis of malisper/pgrust, a Rust project with 2,915 GitHub stars. SynthScan v2.0 examined 2,043,677 lines of code across 5026 source files, recording 9471 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.6 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 9471 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cargo.toml | 1501 | # ~278 MB wasm module (no opt; huge code) whose wasmtime cold-compile takes ~10 | COMMENT |
| LOW | Cargo.toml | 1521 | # that the tcop loop's catch_unwind is meant to recover; | COMMENT |
| LOW | Cargo.toml | 1541 | # fundamentally large, and module size dominates first-load | COMMENT |
| LOW | crates/pl/plpgsql/src/comp_seams/src/lib.rs | 1 | //! Seam declarations for the PL/pgSQL compiler unit (`pl_comp.c`)'s | COMMENT |
| LOW | crates/pl/plpgsql/src/comp_seams/src/lib.rs | 21 | //! simple case, `*cword` [`PLcword`] for the compound cases) is filled with | COMMENT |
| LOW | crates/pl/plpgsql/src/comp_seams/src/lib.rs | 81 | word1: &str, | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/Cargo.toml | 41 | resowner_seams = { path = "../../../../backend/utils/resowner/resowner_seams" } | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/Cargo.toml | 61 | COMMENT | |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 1 | //! `backend-pl-plpgsql-handler` — the PL/pgSQL fmgr-facing handler | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 21 | //! SQL or expression evaluation that reaches the value substrate) runs | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 321 | register_custom_gucs(); | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 441 | Some(extra_checks_guc_check_hook), | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 481 | pub fn plpgsql_call_handler(fcinfo: &mut FunctionCallInfoBaseData) -> PgResult<Datum> { | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 601 | // --------------------------------------------------------------------------- | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 661 | } | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 781 | COMMENT | |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 961 | // canonical by-ref Datum so the output function reads the real value | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 1061 | // by a plain I/O coercion. The C path builds a FuncExpr over the | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 1141 | return Ok(out); | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 1521 | // owned in this unit (pl_handler.c); the executor reads it through the seam. | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 1661 | ::plpgsql_exec_seams::set_current_resource_owner::set(|owner| { | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/lib.rs | 1821 | /// already-evaluated FOREACH array's verbatim varlena byte image, its runtime | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 1 | //! Outward substrate the PL/pgSQL handler consumes (`pl_handler.c`'s externals). | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 21 | /// `T_CallContext` (nodetags.h). | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 61 | /// (utils/init/miscinit.c). The rendezvous-variable substrate is not yet | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 101 | /// tag-only fmgr `ContextNode`; instead it lives on the firing path's per-call | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 141 | /// which on a cache miss reads the called function's `pg_proc` row and runs | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 161 | ) -> ::plpgsql::PLpgSQL_function { | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 201 | /// field-bearing call node is present (the compile body then errors for a | COMMENT |
| LOW | crates/pl/plpgsql/src/handler/src/seam.rs | 481 | /// `context` flag. `plpgsql_compile` resolves the on-disk `pg_proc` row and calls | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 1 | //! Seam declarations for the PL/pgSQL executor unit (`pl_exec.c`). | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 41 | /// `plpgsql_exec_get_datum_type_info(estate, datum, &typeId, &typMod, &collation)` | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 121 | /// The PL/pgSQL error-context line(s) for the live exec stack, supplied for | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 141 | seam_core::seam!( | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 161 | /// `plpgsql_recognize_err_condition(condname, allow_sqlstate)` (`pl_comp.c`): | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 181 | pub reqtypmod: int32, | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 221 | COMMENT | |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 261 | seam_core::seam!( | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 281 | ); | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 301 | /// row count, whether a tuple table was produced, the first result row's columns | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 341 | /// varlena / cstring byte image (`datumCopy`'d out of the cast working context), | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 401 | // | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 441 | COMMENT | |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 461 | /// out-of-band companion, so a later expression evaluation (e.g. | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 481 | pub fn get_namespace_name(nspoid: Oid) -> PgResult<std::string::String> | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 501 | /// `text`/`numeric`/… array element, or — in the SLICE case — the freshly built | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 521 | pub result_type: Oid, | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 541 | /// | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 601 | /// flattens to: the verbatim `HeapTupleHeader` varlena image, plus the row's | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 621 | /// installs it. | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 641 | // cursor/portal surface, so it reaches it through these seams; the handler | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs | 661 | /// no rows (C's `None_Receiver`). | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 1 | //! Lexical scanning for PL/pgSQL — a faithful port of `pl_scanner.c`. | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 21 | //! words directly. The repo's `core_yylex` seam is stateless and takes no | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 41 | COMMENT | |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 361 | COMMENT | |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 421 | /// query bytes. The repo's `core_yylex` seam is stateless, so unlike C's | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 441 | COMMENT | |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 561 | // Not a potential plpgsql variable name, just return the data. | COMMENT |
| LOW | crates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs | 701 | } | COMMENT |
| 9289 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/backend/access/transam/xlogrecovery/src/lib.rs | 58 | //! The **stop / desc / startupxlog families are still scaffold**: honest | COMMENT |
| MEDIUM | …/backend/access/transam/xlogrecovery/src/readrecord.rs | 18 | //! the sanctioned seam-and-panic boundary, exactly as the re-scaffold notes. | COMMENT |
| MEDIUM | …/backend/access/transam/xlogrecovery/src/readrecord.rs | 70 | /// re-scaffold note. | COMMENT |
| MEDIUM | crates/backend/nodes/nodes_core/src/lib.rs | 29 | //! `nodeMemoize`, `nbtree`, …). It is ported with full logic in THIS scaffold | COMMENT |
| MEDIUM | crates/backend/catalog/aclchk/src/lib.rs | 22 | //! kept at `scaffold` until those land (the seam-install guard exempts an | COMMENT |
| MEDIUM | crates/backend/catalog/aclchk/src/lib.rs | 1380 | /// is held at `scaffold` so the seam-install guard exempts them. | COMMENT |
| MEDIUM | crates/backend/catalog/aclchk/src/lib.rs | 1624 | // row is held at `scaffold` so the seam-install guard exempts that | COMMENT |
| MEDIUM | crates/backend/catalog/aclchk/src/lib.rs | 1645 | // NOT installed; the CATALOG row is held at `scaffold` so the seam-install | COMMENT |
| MEDIUM | crates/backend/catalog/objectaddress/src/lib.rs | 4 | //! NEEDS_DECOMP scaffold. The crate is split into five families: | COMMENT |
| MEDIUM | crates/backend/utils/adt/misc2/src/lib.rs | 11 | //! expanded container embeds; ported in the scaffold phase so the unit (and | COMMENT |
| MEDIUM | crates/backend/utils/adt/misc2/src/expandeddatum.rs | 10 | //! ported in the scaffold phase and its two consumed seams | COMMENT |
| MEDIUM | crates/backend/utils/adt/adt_numeric/src/io.rs | 358 | // C sets `dest->sign = sign` here; this scaffold drops the sign parameter, | COMMENT |
| MEDIUM | crates/backend/utils/adt/adt_numeric/src/lib.rs | 6 | //! modules declared below. The scaffold lands the keystone + module skeletons; | COMMENT |
| MEDIUM | …end/utils/adt/adt_numeric/src/kernel_transcendental.rs | 885 | /// numeric.c:11451. C derives the result scale internally; the scaffold lifts | COMMENT |
| MEDIUM | crates/backend/utils/adt/adt_acl/src/acl_ops.rs | 685 | /// `PG_RETURN_BOOL`) is the not-yet-ported fmgr/SRF layer; the argless scaffold | COMMENT |
| MEDIUM | crates/backend/utils/adt/adt_acl/src/acl_ops.rs | 715 | /// scaffold signature carries none of those inputs, so this panics loudly until | COMMENT |
| MEDIUM | crates/backend/utils/adt/adt_acl/src/acl_ops.rs | 858 | /// the scaffold signature (the priv table) and is exercised via | COMMENT |
| MEDIUM | crates/backend/utils/adt/varlena/src/lib.rs | 8 | //! the decomposition scaffold: the [`keystone`] family (the shared carrier | COMMENT |
| MEDIUM | crates/backend/utils/adt/varlena/src/lib.rs | 41 | //! **REAL in this scaffold.** | COMMENT |
| MEDIUM | crates/backend/utils/adt/varlena/src/position_ops.rs | 353 | /// owner seam (the scaffold's no-Mcx signature is widened here, the only | COMMENT |
| MEDIUM | crates/backend/utils/adt/varlena/src/keystone.rs | 25 | //! ## What lives here (REAL, ported in the scaffold phase) | COMMENT |
| MEDIUM | crates/backend/utils/adt/varlena/src/keystone.rs | 25 | //! ## What lives here (REAL, ported in the scaffold phase) | COMMENT |
| MEDIUM | …s/backend/utils/adt/multirangetypes/src/typcache_io.rs | 578 | // pqformat-style binary cursor helpers (pqformat.c), over the scaffold's | COMMENT |
| MEDIUM | crates/backend/utils/cache/relcache/src/lib.rs | 57 | //! **Owns + installs the relcache seams.** (REAL — landed in this scaffold.) | COMMENT |
| MEDIUM | crates/backend/storage/lmgr/lmgr_proc/src/seam.rs | 25 | //! the scaffold stage panics through them so the control flow in | COMMENT |
| MEDIUM | crates/backend/storage/file/fd/src/temp_files.rs | 35 | /// Map the scaffold's `PgResult<File>` open result onto C's `File` sentinel: | COMMENT |
| MEDIUM | …s/backend/storage/ipc/src/ipci_seams_storage_access.rs | 9 | //! and type-checked at scaffold time; [`super::ipci_core`] composes them in | COMMENT |
| MEDIUM | crates/backend/executor/execTuples/src/slot_deform.rs | 569 | /// covers both, matching the scaffold signature. | COMMENT |
| MEDIUM | crates/backend/executor/spi/src/lib.rs | 3 | //! # Port status: NEEDS_DECOMP (scaffold + grounded backbone + residue) | COMMENT |
| MEDIUM | crates/backend/executor/spi/src/lib.rs | 3 | //! # Port status: NEEDS_DECOMP (scaffold + grounded backbone + residue) | COMMENT |
| MEDIUM | …s/backend/executor/execExpr/src/execExpr_domain_agg.rs | 1931 | // Hashed-subplan combining helpers (nodeSubplan.c) — unchanged from scaffold. | COMMENT |
| MEDIUM | crates/backend/executor/nodeAgg/src/lib.rs | 5 | //! still-unported plan-node / nodeFuncs expression vocabulary, not scaffold | COMMENT |
| MEDIUM | crates/backend/executor/nodeAgg/src/sorted_grouping.rs | 425 | // The scaffold carries `phase` as an index into `aggstate.phases` and the | COMMENT |
| MEDIUM | …backend/executor/execProcnode/src/execProcnode_init.rs | 30 | /// `ExecInit*` routines have a seam declared in this scaffold yet, so every | COMMENT |
| MEDIUM | crates/backend/executor/nodeHash/src/lib.rs | 690 | /// Silence the unused-`Size` import warning in the scaffold. | COMMENT |
| MEDIUM | crates/backend/executor/execExprInterp/src/dispatch.rs | 26 | //! build; the scaffold keeps its signature, so its faithful opcode-ordering | COMMENT |
| MEDIUM | crates/backend/executor/execExprInterp/src/dispatch.rs | 754 | // carried here as the usize the scaffold signature uses): | COMMENT |
| MEDIUM | crates/_support/types/nodes/src/nodehash.rs | 851 | /// Silence unused-import lints in the scaffold (the bodies consume `Mcx`). | COMMENT |
| MEDIUM | crates/_support/seam/init/src/lib.rs | 1903 | /// `needs-decomp`, `partial`, `scaffold`) STAY EXEMPT: those owners | COMMENT |
| MEDIUM | crates/_support/seam/init/src/lib.rs | 2143 | /// mid-port frontier (`todo`/scaffold owners) legitimately seam-and-panic | COMMENT |
| MEDIUM | crates/contrib/amcheck/verify_nbtree/src/lib.rs | 7 | // During the decomposition scaffold every family body is mirror-and-panic, so | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/backend/access/common/detoast/src/lib.rs | 606 | // more robust as well. | COMMENT |
| MEDIUM | crates/backend/access/heap/heaptoast/src/lib.rs | 624 | /// containing no out-of-line toasted fields. Essentially `heap_form_tuple`, | COMMENT |
| MEDIUM | crates/backend/access/gist/gist_core/src/gistutil.rs | 1096 | // function exists, then there's a reason for it. Essentially the same code | COMMENT |
| MEDIUM⚡ | crates/backend/utils/adt/adt_datetime/Cargo.toml | 40 | # The `get_share_path` (`common/path.c`) seam, installed by the test harness | COMMENT |
| MEDIUM⚡ | crates/backend/utils/adt/adt_datetime/Cargo.toml | 44 | # harness installs a faithful local `get_share_path` body (a port of | COMMENT |
| MEDIUM⚡ | crates/backend/utils/adt/adt_datetime/Cargo.toml | 49 | # `backend-storage-file-fd`; the test harness installs a `std::fs::read_dir` | COMMENT |
| MEDIUM | …kend/utils/activity/activity_pgstat/src/pgstat_core.rs | 354 | /// This is the seamless reconciliation of C's raw `PgStat_TableStatus *` walks | COMMENT |
| MEDIUM | crates/backend/storage/lmgr/lmgr_proc/src/proc_misc.rs | 139 | /// As this uses the generic process latch the caller has to be robust against | COMMENT |
| MEDIUM | crates/backend/storage/ipc/procarray/src/membership.rs | 74 | // Keep the procs array sorted by (PGPROC *) so that we can utilize | COMMENT |
| MEDIUM | crates/backend/executor/nodeCtescan/src/lib.rs | 125 | // types are not robust about being called again when they've already returned | COMMENT |
| MEDIUM | crates/backend/executor/nodeMaterial/src/lib.rs | 141 | // types are not robust about being called again when they've already | COMMENT |
| MEDIUM | crates/backend/executor/execExpr/src/execExpr_core.rs | 3079 | // Certainly the right type, so needn't check. | COMMENT |
| MEDIUM | …backend/commands/indexcmds/src/reindex_concurrently.rs | 302 | // Definitely no indexes, so leave. | COMMENT |
| MEDIUM | crates/backend/commands/dbcommands/src/lib.rs | 126 | // Definitely no database of that name. | COMMENT |
| MEDIUM | crates/_support/mcx/src/tests.rs | 797 | // is awkward; instead we observe the live charge. A simpler, robust proxy: | COMMENT |
| MEDIUM | crates/common/sha2/src/lib.rs | 40 | // The crate itself is `#![no_std]`; the unit tests use the std test harness. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/backend/rewrite/rewritehandler/src/engine.rs | 3400 | // Step 1: non-SELECT rules. | COMMENT |
| LOW⚡ | crates/backend/rewrite/rewritehandler/src/engine.rs | 3404 | // Step 2: RIR rules on each query. | COMMENT |
| LOW⚡ | crates/backend/rewrite/rewritehandler/src/engine.rs | 3413 | // Step 3: command-tag assignment. | COMMENT |
| LOW | crates/backend/utils/adt/adt_datetime/src/hash.rs | 32 | // Step 1: the small integer-hash folds (stand-ins for hashfunc.c + hashutils). | COMMENT |
| LOW | crates/backend/utils/adt/adt_datetime/src/hash.rs | 81 | // Step 2: the 12 date/time hash functions. | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 473 | // Step 1: substr($desc, 1, -2). `doc` includes the surrounding quotes and | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 483 | // Step 3: <quote>X</quote> -> "X". | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 485 | // Step 4: <tag>X</tag> -> X (non-greedy paired markup strip). | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 487 | // Step 5: rewrite GUC xrefs. | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 489 | // Step 6: drop "; see ..." to end of string. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 123 | // Step 1: check the main Xid. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 134 | // Step 2: check the cached child-Xids arrays. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 154 | // Step 3: in hot standby mode, check the known-assigned-xids list. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 189 | // Step 4: have to check pg_subtrans. It's either a subtransaction of one of | COMMENT |
| LOW⚡ | crates/common/ryu/src/f2s.rs | 212 | // Step 2: Determine the interval of legal decimal representations. | COMMENT |
| LOW⚡ | crates/common/ryu/src/f2s.rs | 218 | // Step 3: Convert to a decimal power base using 64-bit arithmetic. | COMMENT |
| LOW | crates/common/ryu/src/f2s.rs | 281 | // Step 4: Find the shortest decimal representation. | COMMENT |
| LOW⚡ | crates/common/ryu/src/d2s.rs | 164 | // Step 2: Determine the interval of legal decimal representations. | COMMENT |
| LOW⚡ | crates/common/ryu/src/d2s.rs | 169 | // Step 3: Convert to a decimal power base using 128-bit arithmetic. | COMMENT |
| LOW | crates/common/ryu/src/d2s.rs | 228 | // Step 4: Find the shortest decimal representation in the interval. | COMMENT |
| LOW | crates/common/ryu/src/d2s.rs | 329 | // Step 5: Print the decimal representation. | COMMENT |
| LOW | crates/common/ryu/src/d2s.rs | 576 | // Step 1: Decode the floating-point number. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/backend/rewrite/rewritehandler/src/engine.rs | 3400 | // Step 1: non-SELECT rules. | COMMENT |
| LOW⚡ | crates/backend/rewrite/rewritehandler/src/engine.rs | 3404 | // Step 2: RIR rules on each query. | COMMENT |
| LOW⚡ | crates/backend/rewrite/rewritehandler/src/engine.rs | 3413 | // Step 3: command-tag assignment. | COMMENT |
| LOW | crates/backend/utils/adt/adt_datetime/src/hash.rs | 32 | // Step 1: the small integer-hash folds (stand-ins for hashfunc.c + hashutils). | COMMENT |
| LOW | crates/backend/utils/adt/adt_datetime/src/hash.rs | 81 | // Step 2: the 12 date/time hash functions. | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 473 | // Step 1: substr($desc, 1, -2). `doc` includes the surrounding quotes and | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 487 | // Step 5: rewrite GUC xrefs. | COMMENT |
| LOW⚡ | crates/backend/utils/activity/waitevent/src/lib.rs | 489 | // Step 6: drop "; see ..." to end of string. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 123 | // Step 1: check the main Xid. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 134 | // Step 2: check the cached child-Xids arrays. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 154 | // Step 3: in hot standby mode, check the known-assigned-xids list. | COMMENT |
| LOW | …backend/storage/ipc/procarray/src/visibility_lookup.rs | 189 | // Step 4: have to check pg_subtrans. It's either a subtransaction of one of | COMMENT |
| LOW⚡ | crates/common/ryu/src/f2s.rs | 212 | // Step 2: Determine the interval of legal decimal representations. | COMMENT |
| LOW⚡ | crates/common/ryu/src/f2s.rs | 218 | // Step 3: Convert to a decimal power base using 64-bit arithmetic. | COMMENT |
| LOW | crates/common/ryu/src/f2s.rs | 281 | // Step 4: Find the shortest decimal representation. | COMMENT |
| LOW⚡ | crates/common/ryu/src/d2s.rs | 164 | // Step 2: Determine the interval of legal decimal representations. | COMMENT |
| LOW⚡ | crates/common/ryu/src/d2s.rs | 169 | // Step 3: Convert to a decimal power base using 128-bit arithmetic. | COMMENT |
| LOW | crates/common/ryu/src/d2s.rs | 228 | // Step 4: Find the shortest decimal representation in the interval. | COMMENT |
| LOW | crates/common/ryu/src/d2s.rs | 329 | // Step 5: Print the decimal representation. | COMMENT |
| LOW | crates/common/ryu/src/d2s.rs | 576 | // Step 1: Decode the floating-point number. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | crates/backend/access/common/indextuple/src/lib.rs | 243 | out[0..2].copy_from_slice(&self.header.t_tid.ip_blkid.bi_hi.to_ne_bytes()); | CODE |
| CRITICAL | crates/backend/access/common/indextuple/src/lib.rs | 244 | out[2..4].copy_from_slice(&self.header.t_tid.ip_blkid.bi_lo.to_ne_bytes()); | CODE |
| CRITICAL | crates/backend/commands/copyfrom/src/lib.rs | 942 | let name = state.cstate.rel.rd_rel.relname.as_str(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | crates/backend/utils/adt/misc2/src/expandedrecord.rs | 1193 | // Detoast as requested while copying the value. | COMMENT |
| HIGH | crates/backend/utils/cache/cache_typcache/src/lib.rs | 1035 | // Set up fmgr lookup info as requested. | COMMENT |
| HIGH | crates/backend/commands/typecmds/src/lib.rs | 4679 | /// label (`AddEnumLabel`), placing it before/after a neighbor as requested. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 557 | let dummy_id = root.alloc_path(PathNode::Path(sort_dummy)); | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 560 | root, dummy_id, &pathkeys, sub_disabled, sub_total, sub_rows, width, 0.0, wm, | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 563 | let d = root.path(dummy_id).base(); | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 2539 | let dummy_id = root.alloc_path(PathNode::Path(dummy)); | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 2542 | root, dummy_id, &[], sp.disabled_nodes, sp.total_cost, rel_rows, sub_width, 0.0, wm, | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 2545 | let d = root.path(dummy_id).base(); | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 2564 | let dummy_id = root.alloc_path(PathNode::Path(dummy)); | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 2566 | run, root, dummy_id, AGG_HASHED, None, num_cols, path.rows, &[], sp.disabled_nodes, | CODE |
| LOW⚡ | crates/backend/optimizer/util/pathnode/src/create.rs | 2569 | let d = root.path(dummy_id).base(); | CODE |
| LOW⚡ | crates/backend/optimizer/plan/createplan/src/lib.rs | 3706 | let dummy_id = root.alloc_path(PathNode::MaterialPath(MaterialPath { | CODE |
| LOW⚡ | crates/backend/optimizer/plan/createplan/src/lib.rs | 3712 | dummy_id, | CODE |
| LOW⚡ | crates/backend/optimizer/plan/createplan/src/lib.rs | 3720 | let p = root.path(dummy_id).base(); | CODE |
| LOW | crates/backend/optimizer/plan/plan_small/src/lib.rs | 267 | * Examine any "placeholder" expressions generated during subquery pullup. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …d/access/rmgrdesc/rmgrdesc_small/src/rmgrdesc_utils.rs | 50 | // ── seam-compatible entry points ───────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/backend/commands/policy/src/lib.rs | 31 | //! ───────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/backend/commands/policy/src/lib.rs | 47 | //! ───────────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docker/entrypoint.sh | 102 | # Create the transaction log directory before initdb is run so the directory is owned by the correct user | COMMENT |