#329329th of 358 in Backends, databases and hosting
pg
PostgreSQL client and ORM for Go, now in maintenance mode
- Stars
- 5.8k
- License
- BSD-2-Clause
- Last commit
- May 2026
- Last release
- May 2026
- Language
- Go
5,753 on 26 Apr 20265,779 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
go-pg is a Go PostgreSQL client with a struct-based ORM, covering relations (has one, belongs to, has many, many to many), transactions, prepared statements, LISTEN/NOTIFY, COPY, bulk operations and connection pooling with a circuit breaker. The README states it is in maintenance mode, with only critical issues fixed and new development moving to Bun.
Who it is for: Go developers maintaining existing go-pg code on PostgreSQL
Strengths
- Native PostgreSQL types: arrays, hstore, composite types, plus LISTEN/NOTIFY and COPY FROM/TO
- ORM covers has-one, belongs-to, has-many and many-to-many with composite primary keys
- Built-in connection pooling with circuit breaker and retry on network errors
- Query timeouts and cancellation through context.Context
Weaknesses
- Maintenance mode: only critical issues fixed, new development happens in Bun
- PostgreSQL only; Bun is the option for MySQL, MariaDB or SQLite
- Go zero values are written as NULL unless tagged use_zero
- Import path needs the /v10 suffix, which the README calls a popular mistake
What it needs
- no GPU
- Needs PostgreSQL
What changed
- v10.15.1 ↗ (opens in a new tab)Security fix
“This update includes a fix for a security issue, please update to this release as soon as possible.”
- v10.15.0 ↗ (opens in a new tab)Security fix
CVE-2024-44905, GHSA-6XP3-P59P-Q4FJ. “This release includes a security update to resolve CVE-2024-44905, please upgrade to this version at your earliest convenience.”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backends, databases and hosting
See all 358| Rank | Project | Score |
|---|---|---|
| #327 | judge0Sandboxed code execution API for 90+ languages, self-hosted or managed | 41 out of 100 |
| #328 | ponyPython ORM that translates generator expressions into SQL queries | 41 out of 100 |
| #330 | dbGo data access layer with one API for SQL databases and MongoDB | 39 out of 100 |
| #331 | devise_token_authToken-based authentication gem for Rails APIs, built on Devise and OmniAuth | 39 out of 100 |
| #332 | spring-boot-jwtSpring Boot JWT auth service with rotating, revocable refresh tokens | 39 out of 100 |