#329329th of 358 in Backends, databases and hosting

pg

PostgreSQL client and ORM for Go, now in maintenance mode

Releases and problems feed (RSS)

Stars
5.8k
License
BSD-2-Clause
Last commit
May 2026
Last release
May 2026
Language
Go
Stars, last 30 weeks+26
26 Apr 2026: 5,753 stars3 May 2026: 5,754 stars10 May 2026: 5,755 stars17 May 2026: 5,759 stars24 May 2026: 5,759 stars31 May 2026: 5,760 stars7 Jun 2026: 5,762 stars14 Jun 2026: 5,762 stars21 Jun 2026: 5,762 stars28 Jun 2026: 5,763 stars5 Jul 2026: 5,763 stars12 Jul 2026: 5,764 stars19 Jul 2026: 5,765 stars26 Jul 2026: 5,766 stars2 Aug 2026: 5,767 stars9 Aug 2026: 5,768 stars16 Aug 2026: 5,769 stars23 Aug 2026: 5,769 stars30 Aug 2026: 5,769 stars6 Sept 2026: 5,772 stars13 Sept 2026: 5,772 stars20 Sept 2026: 5,772 stars27 Sept 2026: 5,773 stars4 Oct 2026: 5,773 stars11 Oct 2026: 5,773 stars18 Oct 2026: 5,775 stars25 Oct 2026: 5,776 stars1 Nov 2026: 5,778 stars8 Nov 2026: 5,778 stars15 Nov 2026: 5,778 stars22 Nov 2026: 5,779 stars

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

  1. 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.”

  2. 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
Also in Backends, databases and hosting
RankProjectScore
#327judge0Sandboxed code execution API for 90+ languages, self-hosted or managed Live demo ↗ (opens in a new tab)4.5k starsGPL-3.041 out of 100
#328ponyPython ORM that translates generator expressions into SQL queries3.8k starsApache-2.041 out of 100
#330dbGo data access layer with one API for SQL databases and MongoDB Live demo ↗ (opens in a new tab)3.7k starsMIT39 out of 100
#331devise_token_authToken-based authentication gem for Rails APIs, built on Devise and OmniAuth Live demo ↗ (opens in a new tab)3.6k starsWTFPL39 out of 100
#332spring-boot-jwtSpring Boot JWT auth service with rotating, revocable refresh tokens1.7k starsMIT39 out of 100