RepoPilot

postgresml/pgcat

PostgreSQL pooler with sharding, load balancing and failover support.

Mixed

Stale — last commit 1y ago

HealthyDependency

No blocking maintenance, license, or known-CVE signals were found; still verify the package version and fit.

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

last commit was 1y ago; Scorecard "Branch-Protection" is 0/10…

  • Stale — last commit 1y ago
  • Scorecard: marked unmaintained (0/10)
  • Scorecard: default branch unprotected (0/10)
  • 37+ active contributors
  • Distributed ownership (top contributor 22% of recent commits)
  • MIT licensed
  • CI configured
  • Tests present

What would improve this?

  • Deploy as-is Mixed to Healthy if: 1 commit in the last 180 days; bring "Branch-Protection" to ≥3/10 (see scorecard report)

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: postgresml/pgcat

Generated by RepoPilot · document generated 2026-09-16 · concise human review Evidence snapshot · analyzed 2026-09-16T17:27:36.782Z · commit 5b038813eb14

Verdict

Mixed — Stale — last commit 1y ago

  • 37+ active contributors
  • Distributed ownership (top contributor 22% of recent commits)
  • MIT licensed
  • CI configured
  • 1 more receipt on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

What it is

PgCat is a PostgreSQL pooler and proxy written in Rust that multiplexes client connections to PostgreSQL servers with built-in sharding, load balancing, failover, and mirroring. It acts as a middleman between applications and Postgres instances, reducing connection overhead while adding intelligent query routing capabilities similar to PgBouncer but with modern, production-grade features. Monolithic Rust binary structure: src/main.rs and src/lib.rs form the entry points; pooling logic lives in src/pool.rs, query routing in src/query_router.rs, sharding in src/sharding.rs. Authentication is split across src/auth_passthrough.rs, src/scram.rs, and integration in src/client.rs.…

Start here

Read these in order:

  • src/errors.rs — Foundation: doesn't import anything internally and is imported by 12 other files. Read first to learn the vocabulary.
  • src/constants.rs — Foundation: imported by 5, no internal dependencies of its own.
  • src/plugins/mod.rs — Built on the foundation; imported by 3 downstream files.
  • src/scram.rs — Built on the foundation; imported by 2 downstream files.

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

git clone https://github.com/postgresml/pgcat.git
cd pgcat
cargo build --release
./target/release/pgcat --config-file <path-to-config>

Before running, create a configuration file (reference CONFIG.md for schema). The project uses Cargo (Rust package manager) as evidenced by Cargo.toml and Cargo.lock.

Daily commands:

Development: cargo build (debug) or cargo build --release (optimized). Run with: cargo run -- --config-file config.toml or execute ./target/release/pgcat --config-file config.toml. Production: Docker images avai…

…shortened for this brief.

Key cautions & unknowns

  • Stale — last commit 1y ago
  • Scorecard: marked unmaintained (0/10)
  • Scorecard: default branch unprotected (0/10)
  • No cleartext password fallback: if using auth passthrough, the auth_query setting must be configured to authenticate clients without storing passwords in config (see src/auth_passthrough.rs). **Sharding key…
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Safe to depend on" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Safe to depend on
[![RepoPilot: Safe to depend on](https://repopilot.app/api/badge/postgresml/pgcat?axis=dependency)](https://repopilot.app/r/postgresml/pgcat)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/postgresml/pgcat on X, Slack, or LinkedIn.

Ask AI about postgresml/pgcat

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question

More from postgresml

See all
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/postgresml/pgcat"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>