📈 GH Trending Explorer 🎲 Surprise me

← all repos

supabase / postgres

git clone https://github.com/supabase/postgres.git 17.11.0.006-orioledb · 3d ago 🔥 on GitHub Trending today

Build and distribution of unmodified PostgreSQL bundled with a curated set of extensions, configured for production use.

Why you might care

Useful if you want PostgreSQL with common extensions preinstalled instead of compiling and configuring them yourself. Supports multiple Postgres versions and is built with Nix, and it can be self-hosted.

Categories

Alternatives

PostgreSQLBitnami PostgreSQLCloudNativePG
+0
stars, 24h · #23,721
+6
stars, 7 days · #17,319
+14
stars, 30 days · #26,764
1.8k
★ total · +0% this week
272
forks · 95 open issues

Star history (as recorded here)

2026-10-20 · 1,799 ★ 2026-10-23 · 1,800 ★
LanguageNix
LicensePostgreSQL
Created2020-04-10 (6y ago)
Last pushtoday
Watchers41
OwnerOrganization

Seen on GitHub Trending

  • 2026-10-23 — #9 daily in nix
  • 2026-10-23 — #3 monthly in nix · +14 ★
  • 2026-10-23 — #7 weekly in nix · +5 ★
  • 2026-10-22 — #3 monthly in nix · +14 ★
  • 2026-10-22 — #2 weekly in nix · +6 ★
  • 2026-10-21 — #3 monthly in nix · +13 ★
  • 2026-10-21 — #1 weekly in nix · +6 ★
  • 2026-10-20 — #3 monthly in nix · +11 ★
  • 2026-10-20 — #1 weekly in nix · +3 ★

Links

README excerpt
# Getting Started with Supabase Postgres
This guide covers getting up and running with Supabase Postgres. After reading this guide, you will understand:
* What Supabase Postgres provides and why you might want to use it
* How the project is organized and what each directory contains
* How to build and run Postgres with extensions locally
* The basics of working with the extension ecosystem
---
## What is Supabase Postgres?
Supabase Postgres is a batteries-included PostgreSQL distribution that provides unmodified PostgreSQL with a curated set of the most useful extensions pre-installed. Think of it as PostgreSQL with superpowers - you get the reliability and power of standard PostgreSQL, plus immediate access to extensions for tasks like:
* Full-text search and indexing
* Geospatial data processing
* Time-series data management
* JSON validation and GraphQL support
* Cryptography and security
* Message queuing
* And much more
The goal is simple: make it fast and easy to get started with a production-ready PostgreSQL setup without having to hunt down, compile, and configure dozens of extensions yourself.
## Philosophy
Supabase Postgres follows these core principles:
1. **Unmodified PostgreSQL** - We don't fork or modify PostgreSQL itself. You get standard PostgreSQL with extensions.
2. **Curated Extensions** - We include well-maintained, production-tested extensions that solve real problems.
3. **Multi-version Support** - Currently supporting PostgreSQL 15, 17, and OrioleDB-17.
4. **Ready for Production** - Configured with sensible defaults for replication, security, and performance.
5. **Open Source** - Everything is open source and can be self-hosted.
## Directory Structure
Here's a comprehensive overview of the project's directory structure:
| File/Directory | Purpose |
| -------------- | ------- |
| **nix/** | Core build system directory containing all Nix expressions for building PostgreSQL and extensions |
| nix/postgresql/ | PostgreSQL version configurations, patches, and base package definitions |
| nix/ext/ | Individual extension package definitions and build configurations |
| nix/ext/wrappers/ | Wrapper scripts and utilities for extensions |
| nix/ext/tests/ | Extension-specific integration test suites implemented using nixos-test|
| nix/overlays/ | Nix overlays for customizing and overriding package definitions |
| nix/tools/ | Build tools, utilities, and helper scripts |
| nix/docker/ | Docker image build definitions using Nix |
| nix/tests/ | postgres specific test suites for validating builds, including pg_regress tests |
| nix/tests/smoke/ | Quick smoke tests for basic functionality |
| nix/tests/migrations/ | Migration and upgrade test scenarios |
| nix/tests/expected/ | Expected `pg_regress` test outputs for validation |
| nix/tests/sql/ | SQL test scripts that are run in `pg_regress` tests |
| nix/docs/ | Build system documentation |
| **ansible/** | Infrastructure as Code for server configuration and deployment of production hos

Blurb generated by claude-haiku-5-5 today. Star deltas marked ~ are extrapolated from partial history.