Vitess for Postgres
This report presents the forensic synthetic code analysis of multigres/multigres, a Go project with 2,455 GitHub stars. SynthScan v2.0 examined 650,918 lines of code across 1735 source files, recording 2557 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 4.5 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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 2557 distinct pattern matches across 13 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 | codecov.yml | 1 | ignore: | COMMENT |
| LOW | codecov.yml | 21 | # exercised by the dedicated extended-suite workflow. | COMMENT |
| LOW | .golangci.yml | 1 | # Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | .golangci.yml | 201 | - deepequalerrors | COMMENT |
| LOW | .golangci.yml | 221 | - ifaceassert | COMMENT |
| LOW | docker-compose.yml | 1 | # All-in-one Multigres cluster for local development and CI compatibility | COMMENT |
| LOW | docker-compose.yml | 21 | # bundles the required extensions + pgBackRest and set | COMMENT |
| LOW | demo/k8s/port-forward-infra.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | demo/k8s/update-grafana-dashboard.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | demo/k8s/backup-restore.sh | 1 | #!/bin/bash | COMMENT |
| LOW | demo/k8s/backup-restore.sh | 21 | # - kubectl configured to access the cluster | COMMENT |
| LOW | demo/k8s/k8s-multipooler-statefulset.yaml | 1 | # We're trying to see if Statefullsets can be made to work. | COMMENT |
| LOW | demo/k8s/launch-multigres-cluster.sh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | demo/k8s/launch-infra.sh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | demo/k8s/teardown.sh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | demo/k8s/start-qs.sh | 1 | #!/bin/bash | COMMENT |
| LOW | demo/k8s/failover-test.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | demo/k8s/port-forward-multigres-cluster.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | demo/k8s/k8s-postgres-password-secret.yaml | 1 | # Example Secret holding the PostgreSQL superuser password. Each multipooler | COMMENT |
| LOW | demo/observability/sampling-config.yaml | 1 | # OpenTelemetry Sampling Configuration for Multigres kind_demo | COMMENT |
| LOW | demo/local/failover-test.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | tools/setup_s3_cluster.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/download_tool.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/safe_download.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/naming_linter.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/naming_linter.sh | 21 | # "MultiGateway", "MultiAdmin", etc. (and their leading-lowercase variants | COMMENT |
| LOW | tools/setup_build_tools.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/setup_build_tools.sh | 481 | # symlink the resulting binary into $MTROOT/bin/pgproto. | COMMENT |
| LOW | tools/tool_checksums.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/run_super_linter.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docker/pgregress-generate.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | docker/pgregress-generate.sh | 21 | # | COMMENT |
| LOW | docker/cluster-entrypoint.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | docker/cluster-entrypoint.sh | 21 | set -euo pipefail | COMMENT |
| LOW | docker/cluster-entrypoint.sh | 41 | COMMENT | |
| LOW | docker/cluster-entrypoint.sh | 61 | # Connections held back from the pooler when MULTIGRES_PG_MAX_CONNECTIONS is set. | COMMENT |
| LOW | go/cmd/multigateway/plugin_topo.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/multigateway/main.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/multigateway/main_test.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/multiadmin/plugin_topo.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/multiadmin/main.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/multiadmin/main_test.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/main.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/reload.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/start_test.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/flags_test.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/version.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/server.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/metrics.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/pg_instance_test.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/pgdata_permissions_test.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/start.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/metrics_test.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/crash_recovery_test.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/root_test.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/status_test.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/pg_instance.go | 1 | // Copyright 2026 Supabase, Inc. | COMMENT |
| LOW | go/cmd/pgctld/command/pg_instance.go | 21 | "os" | COMMENT |
| LOW | go/cmd/pgctld/command/pg_instance.go | 41 | // PostgreSQL server will use. If we started the transient server on that | COMMENT |
| LOW | go/cmd/pgctld/command/stop.go | 1 | // Copyright 2025 Supabase, Inc. | COMMENT |
| 2161 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 681 | // Step 1: Simulate a running postgres by installing a postmaster.pid that | COMMENT |
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 686 | // Step 2: Stop postgres. This is the first part of the stop→rewind→start sequence. | COMMENT |
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 691 | // Step 3: Run pg_rewind (dry-run). The service must accept this call after a stop; | COMMENT |
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 701 | // Step 4: Start postgres again as standby. This is the critical step: the service | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 79 | # Step 1: Build and start S3 mock server | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 107 | # Step 2: Initialize PostgreSQL cluster | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 141 | # Step 3: Configure pgBackRest | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 174 | # Step 4: Create pgBackRest stanza | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 190 | # Step 5: Create full backup | COMMENT |
| LOW⚡ | go/test/s3mock/test-pgbackrest.sh | 220 | # Step 6: Extract backup label from info output | COMMENT |
| LOW⚡ | go/test/s3mock/test-pgbackrest.sh | 230 | # Step 7: Verify backup integrity | COMMENT |
| LOW⚡ | go/test/s3mock/test-pgbackrest.sh | 239 | # Step 8: Test restore | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 70 | // Step 1: Check initial status | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 75 | // Step 2: Initialize data directory | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 79 | // Step 3: Start PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 84 | // Step 4: Check status - should be running | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 90 | // Step 5: Get version | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 95 | // Step 6: Reload config | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 100 | // Step 7: Restart | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 105 | // Step 8: Check status again | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 110 | // Step 9: Stop PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 115 | // Step 10: Final status check | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 362 | // Step 1: Check initial status - should be NOT_INITIALIZED | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 368 | // Step 2: Try to start without initialization - should fail with proper error | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 374 | // Step 3: Try to stop without initialization - should return appropriate message | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 384 | // Step 4: Try restart without initialization - should fail | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 389 | // Step 5: Try reload config without initialization - should fail | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 394 | // Step 6: Initialize should work | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 399 | // Step 7: Status should now show STOPPED | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 106 | // Step 2: Check status - should show stopped after init | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 116 | // Step 3: Test help commands work | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 122 | // Step 4: Test that real PostgreSQL binaries are detected | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 129 | // Step 5: Test initialization works with real PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 972 | // Step 1: Initialize the database first | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 981 | // Step 2: Check status - should be stopped after init | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 991 | // Step 3: Start PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 997 | // Step 4: Check status - should be running | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1004 | // Step 5: Reload configuration | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1010 | // Step 6: Restart PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1016 | // Step 7: Check status again - should still be running | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1023 | // Step 8: Stop PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1029 | // Step 9: Final status check - should be stopped | COMMENT |
| LOW | go/test/endtoend/pgctld/pgctld_test.go | 85 | // Step 1: Initialize the database first | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 101 | // Step 1: Initialize cluster with S3 + UseEnvCredentials | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 123 | // Step 2: Verify initial credentials file exists | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 150 | // Step 3: Change AWS credentials in environment | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 162 | // Step 4: Run refresh-credentials command | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 178 | // Step 5: Verify credentials file updated with new values | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 202 | // Step 6: Verify file permissions preserved (0600) | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 98 | // Step 1: Kill postgres on primary to trigger failover | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 102 | // Step 2: Wait for new primary election | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 108 | // Step 3: Write data to new primary to ensure timeline has diverged | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 112 | // Step 4: Re-enable postgres auto-restarts on the old primary. The new | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 120 | // Step 5: Wait for multiorch to detect and repair divergence. Once postgres | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 127 | // Step 6: Verify old primary is now replicating from new primary | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 131 | // Step 7: Verify replication is actually working by writing data and checking it replicates | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 135 | // Step 8: Verify the old primary was demoted via SetPrimary. | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 140 | // Step 9: Verify consensus.recruit event was emitted during failover. | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 196 | // Step 1: Gracefully shutdown postgres on primary to trigger failover. | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 204 | // Step 2: Wait for new primary election | COMMENT |
| 56 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 681 | // Step 1: Simulate a running postgres by installing a postmaster.pid that | COMMENT |
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 686 | // Step 2: Stop postgres. This is the first part of the stop→rewind→start sequence. | COMMENT |
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 691 | // Step 3: Run pg_rewind (dry-run). The service must accept this call after a stop; | COMMENT |
| LOW⚡ | go/cmd/pgctld/command/server_test.go | 701 | // Step 4: Start postgres again as standby. This is the critical step: the service | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 79 | # Step 1: Build and start S3 mock server | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 107 | # Step 2: Initialize PostgreSQL cluster | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 141 | # Step 3: Configure pgBackRest | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 174 | # Step 4: Create pgBackRest stanza | COMMENT |
| LOW | go/test/s3mock/test-pgbackrest.sh | 190 | # Step 5: Create full backup | COMMENT |
| LOW⚡ | go/test/s3mock/test-pgbackrest.sh | 220 | # Step 6: Extract backup label from info output | COMMENT |
| LOW⚡ | go/test/s3mock/test-pgbackrest.sh | 230 | # Step 7: Verify backup integrity | COMMENT |
| LOW⚡ | go/test/s3mock/test-pgbackrest.sh | 239 | # Step 8: Test restore | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 70 | // Step 1: Check initial status | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 75 | // Step 2: Initialize data directory | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 79 | // Step 3: Start PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 84 | // Step 4: Check status - should be running | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 90 | // Step 5: Get version | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 95 | // Step 6: Reload config | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 100 | // Step 7: Restart | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 105 | // Step 8: Check status again | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 110 | // Step 9: Stop PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 115 | // Step 10: Final status check | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 362 | // Step 1: Check initial status - should be NOT_INITIALIZED | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 368 | // Step 2: Try to start without initialization - should fail with proper error | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 374 | // Step 3: Try to stop without initialization - should return appropriate message | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 384 | // Step 4: Try restart without initialization - should fail | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 389 | // Step 5: Try reload config without initialization - should fail | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 394 | // Step 6: Initialize should work | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_grpc_test.go | 399 | // Step 7: Status should now show STOPPED | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 106 | // Step 2: Check status - should show stopped after init | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 116 | // Step 3: Test help commands work | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 122 | // Step 4: Test that real PostgreSQL binaries are detected | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 129 | // Step 5: Test initialization works with real PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 972 | // Step 1: Initialize the database first | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 981 | // Step 2: Check status - should be stopped after init | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 991 | // Step 3: Start PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 997 | // Step 4: Check status - should be running | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1004 | // Step 5: Reload configuration | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1010 | // Step 6: Restart PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1016 | // Step 7: Check status again - should still be running | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1023 | // Step 8: Stop PostgreSQL | COMMENT |
| LOW⚡ | go/test/endtoend/pgctld/pgctld_test.go | 1029 | // Step 9: Final status check - should be stopped | COMMENT |
| LOW | go/test/endtoend/pgctld/pgctld_test.go | 85 | // Step 1: Initialize the database first | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 101 | // Step 1: Initialize cluster with S3 + UseEnvCredentials | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 123 | // Step 2: Verify initial credentials file exists | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 150 | // Step 3: Change AWS credentials in environment | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 162 | // Step 4: Run refresh-credentials command | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 178 | // Step 5: Verify credentials file updated with new values | COMMENT |
| LOW | …/endtoend/localprovisioner/refresh_credentials_test.go | 202 | // Step 6: Verify file permissions preserved (0600) | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 98 | // Step 1: Kill postgres on primary to trigger failover | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 102 | // Step 2: Wait for new primary election | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 108 | // Step 3: Write data to new primary to ensure timeline has diverged | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 112 | // Step 4: Re-enable postgres auto-restarts on the old primary. The new | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 120 | // Step 5: Wait for multiorch to detect and repair divergence. Once postgres | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 127 | // Step 6: Verify old primary is now replicating from new primary | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 131 | // Step 7: Verify replication is actually working by writing data and checking it replicates | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 135 | // Step 8: Verify the old primary was demoted via SetPrimary. | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 140 | // Step 9: Verify consensus.recruit event was emitted during failover. | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 196 | // Step 1: Gracefully shutdown postgres on primary to trigger failover. | COMMENT |
| LOW⚡ | go/test/endtoend/multiorch/demote_stale_primary_test.go | 204 | // Step 2: Wait for new primary election | COMMENT |
| 44 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | demo/k8s/k8s-multipooler-statefulset.yaml | 11 | # =================================================== | COMMENT |
| MEDIUM | go/common/consensus/proposals_test.go | 220 | // ── outgoing cohort mode ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | go/common/consensus/proposals_test.go | 1019 | // ── incoming cohort mode (bootstrap) ───────────────────────────────────── | COMMENT |
| MEDIUM | go/common/sqltypes/arrays_test.go | 25 | // ── Happy path ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | go/common/sqltypes/arrays_test.go | 96 | // ── Backslash escaping outside of quotes ───────────────────────────────── | COMMENT |
| MEDIUM | go/common/sqltypes/arrays_test.go | 118 | // ── NULL handling ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | go/common/sqltypes/arrays_test.go | 138 | // ── Unicode ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | go/common/sqltypes/arrays_test.go | 146 | // ── Structural errors ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | go/common/sqltypes/sqltypes.go | 70 | // ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 47 | // ┌──────────────────────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 49 | // ├──────────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 51 | // │ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 54 | // │ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 56 | // │ └────────────────────┼────────────────────┘ │ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 59 | // └──────────────────────────────────────────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 85 | // ┌──────────────────────┐ ManagerHealthStream ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 86 | // │ Multipooler │ ──── snapshot ────────> │ HealthStream │ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 88 | // │ 5s poll ticker) │ └──────────┬───────────┘ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 89 | // └──────────────────────┘ │ applySnapshot | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 91 | // ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 93 | // └──────────────────────┘ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 102 | // ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 103 | // │ Pooler Store │──────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 105 | // └──────────────────────┘ │ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 107 | // ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 110 | // └──────────┬───────────┘ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 113 | // ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 116 | // └──────────┬───────────┘ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 119 | // ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 122 | // └──────────┬───────────┘ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 125 | // ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 128 | // └──────────┬───────────┘ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 131 | // ┌──────────────────────┐ | COMMENT |
| MEDIUM⚡ | go/services/multiorch/recovery/engine.go | 134 | // └──────────────────────┘ | COMMENT |
| MEDIUM⚡ | …multipooler/internal/connpoolmanager/demand_tracker.go | 60 | // ┌─────────────────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | …multipooler/internal/connpoolmanager/demand_tracker.go | 62 | // ├───────────────────┬───────────────────┬─────────────────────┤ | COMMENT |
| MEDIUM⚡ | …multipooler/internal/connpoolmanager/demand_tracker.go | 66 | // └───────────────────┴───────────────────┴─────────────────────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | codecov.yml | 32 | # differential report core, schema-reset and run-loop scaffolding). The | COMMENT |
| MEDIUM | demo/observability/sampling-config.yaml | 12 | # Operations: orchestration, failover, replication management | COMMENT |
| MEDIUM | demo/observability/sampling-config.yaml | 37 | # MultipoolerManager: orchestration and replication management | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 59 | // Check REPLICA guardrails (pooler type and recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 217 | // Check REPLICA guardrails (pooler type and recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 247 | // Check REPLICA guardrails (pooler type and recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 280 | // Check REPLICA guardrails (pooler type and recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 342 | // Acting as primary - get primary status (skip guardrails since we already checked recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 352 | // Acting as standby - get replication status (skip guardrails since we already checked recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 379 | // Check REPLICA guardrails (pooler type and recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 431 | // Check PRIMARY guardrails (pooler type and non-recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 612 | // Check PRIMARY guardrails (pooler type and non-recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 631 | // Check PRIMARY guardrails (pooler type and non-recovery mode) | COMMENT |
| MEDIUM | go/services/multipooler/internal/manager/rpc_manager.go | 653 | // Check REPLICA guardrails (pooler type and recovery mode) | COMMENT |
| MEDIUM | config/multiorch.yaml | 2 | # Cluster orchestration service configuration | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | codecov.yml | 17 | # PostgreSQL regression / isolation harness lives behind opt-in env | COMMENT |
| MEDIUM | codecov.yml | 31 | # Shared harness helpers (patch verify/generate, corpus discovery, the | COMMENT |
| MEDIUM | tools/safe_download.sh | 16 | # safe_download - A robust wrapper around curl for downloading files | COMMENT |
| MEDIUM | tools/setup_build_tools.sh | 571 | # Install sqllogictest-rs CLI (used by the differential SLT harness). | COMMENT |
| MEDIUM | tools/setup_build_tools.sh | 574 | # Build pgproto from source (used by the wire-protocol conformance harness). | COMMENT |
| MEDIUM | go/tools/telemetry/sampler.go | 204 | // to make matching more robust and explicit. For example: | COMMENT |
| MEDIUM | go/test/endtoend/pgregresstest/extensions.go | 103 | {"pg_jsonschema", KindExternal, StatusCovered, "Rust/pgrx JSON Schema validator; ships no SQL suite (upstream tests are | CODE |
| MEDIUM | go/common/servenv/servenv_unix.go | 233 | // #nosec G703 -- testDataDir comes from MULTIGRES_TESTDATA_DIR (test harness env), not external input. | COMMENT |
| MEDIUM | go/common/pgprotocol/server/conn.go | 151 | // keeps the check robust if c.conn is ever wrapped in instrumentation. | COMMENT |
| MEDIUM | go/services/multipooler/internal/executor/executor.go | 738 | // this is robust against pg_try_advisory_lock calls that failed, keys locked | COMMENT |
| MEDIUM | scripts/go_test_coverage.sh | 16 | # Development helper script for collecting comprehensive coverage data. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/local/run-with-otel.sh | 9 | # Check if observability stack is running | COMMENT |
| LOW | demo/local/run-observability.sh | 13 | # Check if docker is running | COMMENT |
| LOW | demo/local/run-observability.sh | 19 | # Check if container is already running | COMMENT |
| LOW | tools/setup_s3_cluster.sh | 131 | # Check if cluster already exists | COMMENT |
| LOW | tools/setup_build_tools.sh | 77 | # Check if already installed with correct version | COMMENT |
| LOW | tools/setup_build_tools.sh | 305 | # Check if PostgreSQL repo is already configured | COMMENT |
| LOW | go/test/endtoend/run_in_test.sh | 78 | # Check if testdata directory was deleted | COMMENT |
| LOW | go/test/endtoend/run_in_test.sh | 85 | # Check if monitored process died | COMMENT |
| LOW | go/test/endtoend/run_command_if_parent_dies.sh | 43 | # Check if testdata directory was deleted | COMMENT |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 80 | # Check if we're starting a function body or DO block | COMMENT |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 127 | # Check if we're ending a function body or DO block | COMMENT |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 154 | # Check if statement ends after the definition | COMMENT |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 188 | # Check if statement ends after the definition | COMMENT |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 200 | # Check if statement ends with semicolon (but ONLY when not inside function body) | COMMENT |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 341 | # Check if the statement contains psql variables (colon syntax) | COMMENT |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 407 | # Check if this looks like a time pattern | COMMENT |
| LOW | scripts/go_test_coverage.sh | 54 | # Check if coverage binaries exist | COMMENT |
| LOW | scripts/go_test_coverage.sh | 130 | # Check if we have coverage data to merge | COMMENT |
| LOW | scripts/portpool.sh | 21 | # scripts/portpool.sh status # Check if the server is running | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/k8s/backup-restore.sh | 27 | # Usage: | COMMENT |
| LOW | docker/pgregress-generate.sh | 22 | # Usage: | COMMENT |
| LOW | go/tools/retry/retry.go | 25 | // Example usage: | COMMENT |
| LOW | go/tools/retry/retry.go | 193 | // Example usage: | COMMENT |
| LOW | go/tools/timer/periodic_runner.go | 46 | // Example usage: | COMMENT |
| LOW | go/tools/viperutil/registry.go | 46 | // Example usage: | COMMENT |
| LOW | go/tools/viperutil/viper.go | 142 | // Example usage: | COMMENT |
| LOW | go/provisioner/provisioner.go | 26 | // Example usage: | COMMENT |
| LOW | go/common/parser/ast/rewriter_api.go | 33 | // Example usage: | COMMENT |
| LOW | scripts/portpool.sh | 18 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | go/common/pgprotocol/server/query_test.go | 268 | []byte("John Doe"), | CODE |
| LOW | go/common/pgprotocol/client/query.go | 65 | // - SELECT * FROM users WHERE email = 'user@example.com' | COMMENT |
| LOW | go/common/parser/testdata/misc_cases.json | 664 | "query": "CALL update_user(123, 'John Doe')" | CODE |
| LOW | go/common/parser/testdata/misc_cases.json | 729 | "query": "EXECUTE multi_param_plan (123, 'John Doe', TRUE)", | CODE |
| LOW | go/common/parser/testdata/misc_cases.json | 730 | "expected": "EXECUTE multi_param_plan ( 123, 'John Doe', TRUE )" | CODE |
| LOW⚡ | go/common/parser/testdata/postgres/tsearch.json | 560 | "query": "SELECT ts_headline('english', 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', to_tsquery('english',' | CODE |
| LOW⚡ | go/common/parser/testdata/postgres/tsearch.json | 561 | "expected": "SELECT ts_headline('english', 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', to_tsquery('english | CODE |
| LOW⚡ | go/common/parser/testdata/postgres/tsearch.json | 565 | "query": "SELECT ts_headline('english', 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', phraseto_tsquery('engl | CODE |
| LOW⚡ | go/common/parser/testdata/postgres/tsearch.json | 566 | "expected": "SELECT ts_headline('english', 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', phraseto_tsquery('e | CODE |
| LOW | go/common/parser/testdata/postgres/tsearch.json | 589 | "query": "SELECT ts_headline('english', 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', to_tsquery('english',' | CODE |
| LOW | go/common/parser/testdata/postgres/tsearch.json | 590 | "expected": "SELECT ts_headline('english', 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', to_tsquery('english | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | demo/local/run-observability.sh | 53 | # Create a temporary directory for dashboard provisioning config | COMMENT |
| MEDIUM | tools/tool_checksums.sh | 17 | # This file contains verified checksums for binary downloads used in the project. | COMMENT |
| MEDIUM | go/cmd/multigres/command/root.go | 60 | multigres cluster init # Create a local cluster configuration | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 44 | CODE | |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 244 | CODE | |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 292 | CODE | |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 328 | CODE | |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 361 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 292 | def extract_content_after_metacommand(line: str) -> str: | CODE |
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 328 | def handle_parameterized_queries(stmt: str) -> Optional[str]: | CODE |
| LOW | web/multiadmin/components/topology-graph.tsx | 95 | function calculateLagFromTimestamp(timestamp: string): string { | CODE |
| LOW | web/multiadmin/components/ui/chart.tsx | 308 | function getPayloadConfigFromPayload( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mon/parser/testdata/postgres/convert_postgres_tests.py | 618 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |