Go Postgres

Open-source Go projects categorized as Postgres

Top 23 Go Postgre Projects

  1. Gravitational Teleport

    The easiest, and most secure way to access and protect all of your infrastructure.

    Project mention: Ask HN: Who is hiring? (May 2025) | news.ycombinator.com | 2025-05-01

    Teleport (YC S15) | Backend and Fullstack Engineers | US, Toronto, London, Remote OK | https://goteleport.com

    Do you enjoy building security and deployment tools for other engineers? Join us to hack on https://github.com/gravitational/teleport. Most of our code is Go, we have very little technical debt, our codebase is clean and small.

    If you are a backend or fullstack engineer, we expect you to be comfortable with the following:

      * Go for backend and Go+TypeScript for fullstack engineers.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. migrate

    Database migrations. CLI and Golang library.

    Project mention: Database Schema Migration Cheatsheet with golang-migrate/migrate | dev.to | 2025-07-12

    curl -L https://github.com/golang-migrate/migrate/releases/download/v4.17.1/migrate.linux-amd64.tar.gz | tar xvz sudo mv migrate /usr/local/bin/

  4. FerretDB

    A truly Open Source MongoDB alternative

    Project mention: Beekeeper-studio/queryleaf: SQL for Mongo | news.ycombinator.com | 2025-05-08

    FerretDB v2 is built on top of this extension. See https://github.com/FerretDB/FerretDB

  5. usql

    Universal command-line interface for SQL databases

    Project mention: Clement-tourriere/dbcrust: The modern database CLI that speaks your language | news.ycombinator.com | 2025-08-16
  6. goose

    A database migration tool. Supports SQL migrations and Go functions. (by pressly)

    Project mention: Best Database Migration Tools for Golang | dev.to | 2025-06-07

    Goose is a no-fuss, lightweight migration tool for Go. It’s perfect for developers who want minimal setup and SQL-based migrations without heavy dependencies. Goose supports PostgreSQL, MySQL, SQLite, and more, and it’s easy to integrate into a Go project.

  7. SQLBoiler

    Generate a Go ORM tailored to your database schema.

  8. cloudnative-pg

    CloudNativePG is a comprehensive platform designed to seamlessly manage PostgreSQL databases within Kubernetes environments, covering the entire operational lifecycle from initial deployment to ongoing maintenance

    Project mention: PostgreSQL Branching: Xata vs. Neon vs. Supabase - Part 1 | dev.to | 2025-06-25

    Xata’s new platform uses a decoupled storage and compute architecture similar in spirit to Aurora, but with a critical difference. We do it strictly at the storage layer, without modifying Postgres itself. On the compute side, we run unmodified PostgreSQL instances in containers orchestrated by Kubernetes, using the CloudNativePG operator for high availability and failover. On the storage side, we’ve partnered with Simplyblock to provide a distributed block storage cluster accessible over NVMe-oF (NVMe over Fabrics).

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. dbmate

    🚀 A lightweight, framework-agnostic database migration tool.

    Project mention: FastAPI in Prod: Handling DB migrations, auth, and more | dev.to | 2025-02-18

    dbmate – A simple, language-agnostic approach to managing database migrations.

  11. postgres-operator

    Postgres operator creates and manages PostgreSQL clusters running in Kubernetes

    Project mention: Postgres in prod. Part 1 - setup and startup for growth. | dev.to | 2025-01-30

    There are two major ways to deploy Postgres to Kubernetes. First is using Helm charts like bitnami/postgresql or Serge’s postgresql-single, which has benefits compared to bitnami chart. The second way to run Postgres is to use the Kubernetes operator. There are a couple of them, here we will talk about Zalando Postgres operator. The helm way is better when in the future you will not plan to use more than one or two Postgres clusters per Kubernetes cluster. If you realize, that you will run more, then the Operator way is for you with all its automation and management advantages. Here is an example of PostgreSQL database manifest for Zalando Postgres Operator pg-prod.yaml. This example was tested for intensive transaction processing with query rates up to 3000-4000 per second and database size up to 350GB (data and indexes). It is enough to start most projects with thousands of active users like medium-volume webshops, news- and community-support websites, medium-sized gaming or gambling, etc. We assume, that we already set up the operator and the S3 bucket with encryption and access control for backups and WAL-log storage.

  12. pREST

    PostgreSQL ➕ REST, low-code, simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new

  13. river

    Fast and reliable background jobs in Go (by riverqueue)

    Project mention: How to Run CRON Jobs in Postgres Without Extra Infrastructure | news.ycombinator.com | 2025-05-30
  14. postgres-operator

    Production PostgreSQL for Kubernetes, from high availability Postgres clusters to full-scale database-as-a-service. (by CrunchyData)

  15. space-cloud

    Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes

  16. wal-g

    Archival and Restoration for databases in the Cloud

    Project mention: Speeding up PostgreSQL dump/restore snapshots | news.ycombinator.com | 2025-07-05

    Slightly related but how does WAL-G stack up as far as backup/restoration options go for Postgres? https://github.com/wal-g/wal-g

  17. jet

    Type safe SQL builder with code generation and automatic query result data mapping

    Project mention: Structuring a Go Project with Clean Architecture — A Practical Example | dev.to | 2025-05-25

    4. Infrastructure Layer — internal/infra/ This layer implements database logic using go-jet and sqlx. It satisfies the interfaces defined in the domain layer.

  18. peerdb

    Fast, Simple and a cost effective tool to replicate data from Postgres to Data Warehouses, Queues and Storage

    Project mention: ClickHouse matches PG for single-row UPDATEs and 4k× faster for bulk UPDATEs | news.ycombinator.com | 2025-08-17
  19. goqu

    SQL builder and query library for golang

    Project mention: PostgreSQL 17 Released | news.ycombinator.com | 2024-09-26

    I've been using Go with Goqu [1] for SQL for a lot of things lately. But, the language shouldn't matter much. The functions are just building the appropriate SQL clauses.

    For some of the operations, the method I was using required marshaling the inputs to JSON before sending them over the wire. And that's nicer in a non SQL programming language. But both db's ultimately do have json_build_array/json_build_object for PostgreSQL or json_array/json_object for SQLite3.

    [1] https://github.com/doug-martin/goqu

  20. sq

    sq data wrangler

  21. database-lab-engine

    DBLab enables 🖖 database branching and ⚡️ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.

  22. go-oauth2-server

    A standalone, specification-compliant, OAuth2 server written in Golang.

  23. pgbackweb

    🐘 Effortless PostgreSQL backups with a user-friendly web interface! 🌐💾

    Project mention: Effortless PostgreSQL backups with a user-friendly web interface | news.ycombinator.com | 2024-09-08
  24. go-base

    Go RESTful API Boilerplate with JWT Authentication backed by PostgreSQL

  25. gnomock

    Test your code without writing mocks with ephemeral Docker containers 📦 Setup popular services with just a couple lines of code ⏱️ No bash, no yaml, only code 💻

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Postgres discussion

Log in or Post with

Go Postgres related posts

  • neon VS dolt - a user suggested alternative

    2 projects | 8 Jul 2025
  • Speeding up PostgreSQL dump/restore snapshots

    1 project | news.ycombinator.com | 5 Jul 2025
  • PostgreSQL Branching: Xata vs. Neon vs. Supabase - Part 1

    3 projects | dev.to | 25 Jun 2025
  • Streaming PostgreSQL Backups with pgrwl: Now with Time & Count-Based Retention!

    1 project | dev.to | 15 Jun 2025
  • Pgrwl v1.0.16 Adds Base Backup Support for PostgreSQL WAL Archiving

    2 projects | news.ycombinator.com | 6 Jun 2025
  • 🔬 Internals of PostgreSQL WAL Streaming with pgrwl: A Cloud-Native Receiver Built in Go

    1 project | dev.to | 5 Jun 2025
  • Neoq – a queue-agnostic background job library for Go

    1 project | news.ycombinator.com | 1 Jun 2025
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →

Index

What are some of the best open-source Postgre projects in Go? This list will help you:

# Project Stars
1 Gravitational Teleport 19,068
2 migrate 17,250
3 FerretDB 10,413
4 usql 9,513
5 goose 9,007
6 SQLBoiler 6,916
7 cloudnative-pg 6,730
8 dbmate 6,294
9 postgres-operator 4,840
10 pREST 4,390
11 river 4,381
12 postgres-operator 4,237
13 space-cloud 3,970
14 wal-g 3,692
15 jet 3,342
16 peerdb 2,646
17 goqu 2,555
18 sq 2,316
19 database-lab-engine 2,197
20 go-oauth2-server 2,129
21 pgbackweb 1,803
22 go-base 1,627
23 gnomock 1,463

Sponsored
Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com

Did you know that Go is
the 4th most popular programming language
based on number of references?