awesome-postgres

Postgres toolkit

A curated collection of resources and tools for managing and optimizing PostgreSQL databases.

A curated list of awesome PostgreSQL software, libraries, tools and resources, inspired by awesome-mysql

GitHub

10k stars
327 watching
814 forks
last commit: 2 months ago
Linked from 7 awesome lists

databasepostgrespostgresql

Awesome Postgres / Contents / High-Availability

BDR 360 almost 5 years ago BiDirectional Replication - a multimaster replication system for PostgreSQL
Patroni 6,832 9 days ago Template for PostgreSQL HA with ZooKeeper or etcd
Stolon 4,661 5 months ago PostgreSQL HA based on Consul or etcd, with Kubernetes integration
pglookout 186 about 2 months ago Replication monitoring and failover daemon
repmgr 1,572 7 days ago Open-source tool suite to manage replication and failover in a cluster of PostgreSQL servers
Slony-I "Master to multiple slaves" replication system with cascading and failover
PAF 342 5 months ago PostgreSQL Automatic Failover: High-Availibility for Postgres, based on Pacemaker and Corosync
SkyTools 249 over 7 years ago Replication tools, including PgQ, a queuing system, and Londiste, a replication system a bit simpler to manage than Slony

Awesome Postgres / Contents / Backups

Barman Backup and Recovery Manager for PostgreSQL by 2ndQuadrant
OmniPITR 177 over 5 years ago Advanced WAL File Management Tools for PostgreSQL
pg_probackup 715 about 1 month ago – A fork of pg_arman, improved by @PostgresPro, supports incremental backups, backups from replica, multithreaded backup and restore, and anonymous backup without archive command
pgBackRest Reliable PostgreSQL Backup & Restore
pg_back 533 29 days ago pg_back is a simple backup script
pghoard 1,316 10 days ago Backup and restore tool for cloud object stores (AWS S3, Azure, Google Cloud, OpenStack Swift)
wal-e 3,455 11 months ago (obsolete) - Simple Continuous Archiving for PostgreSQL to S3, Azure, or Swift by Heroku
wal-g 3,314 5 days ago The successor of WAL-E rewritten in Go. Currently supports cloud object storage services by AWS (S3), Google Cloud (GCS), Azure, as well as OpenStack Swift, MinIO, and file system storages. Supports block-level incremental backups, offloading backup tasks to a standby server, provides parallelization and throttling options. In addition to Postgres, WAL-G can be used for MySQL and MongoDB databases
pitrery pitrery is a set of Bash scripts to manage Point In Time Recovery (PITR) backups for PostgreSQL

Awesome Postgres / Contents / GUI

Adminer Full-featured database management tool written in PHP
Beekeeper Studio Free and open source SQL client with a modern UI and great Postgres support. Cross platform
Chartbrew Create live dashboards, charts, and client reports from PostgreSQL data. Features a query tool that works with SQL
Count Web-based analytics platform with a notebook interface which connects to PostgreSQL (Commercial Software)
DataGrip IDE with advanced tool sets and good cross-platform experience (Commercial Software)
Datazenit Web-based PostgreSQL GUI (Commercial Software)
DataRow Cross-platform SQL Client for Amazon Redshift: Simple, Effortless, Extensible
DBeaver Universal Database Manager with excellent support for PostgreSQL
dbglass Cross-platform desktop client for PostgreSQL, built with Electron
Holistics Online cross platform database management tool and SQL query reporting GUI with strong PostgreSQL support (Commercial Software)
JackDB Web-based SQL query interface (Commercial Software)
Metabase Simple dashboards, charts and query tool for PostgreSQL
Numeracy Fast SQL editor with charts and dashboards for PostgreSQL (Commercial Software)
OmniDB Open Source Collaborative Environment For Database Management
pgAdmin PostgreSQL Administration and Management GUI
pgModeler pgModeler is an open-source PostgreSQL Database Modeler
pgweb 8,647 19 days ago Web-based PostgreSQL database browser written in Go
phpPgAdmin 802 4 months ago The Premier Web Based Administration Tool for PostgreSQL
Postbird 1,550 over 1 year ago PostgreSQL Client for macOS
PostgresCompare Cross-platform database comparison and deployment tool (Commercial Software)
Postico Modern PostgreSQL Client for macOS (Commercial Software)
PSequel Clean and simple interface to perform common PostgreSQL tasks quickly (Commercial Software)
SQL Tabs Cross Platform Desktop Client for PostgreSQL written in JS
SQLPro for Postgres Simple, powerful PostgreSQL manager for macOS (Commercial Software)
temBoard 459 15 days ago Web-based PostgreSQL GUI and monitoring
TablePlus Native App which let you edit database and structure. High-end security ensured (Commercial Software)
Valentina Studio Cross-platform database administration tool (Free/Commercial)
DbGate The Smartest (no)SQL Database Client

Awesome Postgres / Contents / Distributions

Postgres.app The Easiest Way to Get Started with PostgreSQL on macOS
PostgreSql.Binaries.Lite Minimum set of Windows binaries of the PostgreSQL database. Also made available through NuGet

Awesome Postgres / Contents / CLI

atlas 5,964 7 days ago Atlas is a tool for managing and migrating database schemas using modern DevOps principles
pgcli 12,140 about 2 months ago Postgres CLI with autocompletion and syntax highlighting
pgsh 568 almost 2 years ago Branch your PostgreSQL Database like Git
psql The built-in PostgreSQL CLI client
psql2csv 184 over 2 years ago Run a query in psql and output the result as CSV
nancy The Nancy CLI is a unified way to manage automated database experiments either in clouds or on-premise
schemaspy 3,213 3 months ago SchemaSpy is a JAVA JDBC-compliant tool for generating your database to HTML documentation, including Entity Relationship diagrams

Awesome Postgres / Contents / Server

Postgres-XL Scalable Open Source PostgreSQL-based Database Cluster
AgensGraph Powerful graph database based on the PostgreSQL
Greenplum Database Open source fork of PostgreSQL for large data volumes
YugabyteDB Open Source Distributed SQL using a fork of PostgreSQL on top of distributed storage and transaction

Awesome Postgres / Contents / Monitoring

check_pgactivity 175 2 months ago check_pgactivity is designed to monitor PostgreSQL clusters from Nagios. It offers many options to measure and monitor useful performance metrics
Check_postgres 561 7 months ago Nagios check_postgres plugin for checking status of PostgreSQL databases
Instrumental 14 about 6 years ago Real-time performance monitoring, including for ease of setup (Commercial Software)
libzbxpgsql 157 about 1 year ago Comprehensive PostgreSQL monitoring module for Zabbix
PMM 674 4 days ago Percona Monitoring and Management (PMM) is a Free and Open Source platform for monitoring and managing PostgreSQL, MySQL, and MongoDB
Pome 1,090 about 4 years ago Pome stands for PostgreSQL Metrics. Pome is a PostgreSQL Metrics Dashboard to keep track of the health of your database
pgmetrics pgmetrics is an open-source, zero-dependency, single-binary tool that can collect a lot of information and statistics from a running PostgreSQL server and display it in easy-to-read text format or export it as JSON and CSV for scripting
pg_view 495 over 1 year ago Open-source command-line tool that shows global system stats, per-partition information, memory stats and other information
pgwatch2 1,820 8 days ago Flexible and easy to get started PostgreSQL metrics monitor focusing on Grafana dashboards
pgbench Run a benchmark test on PostgreSQL
opm.io Open PostgreSQL Monitoring is a free software suite designed to help you manage your PostgreSQL servers. It can gather stats, display dashboards and send warnings when something goes wrong
okmeter.io Commercial SaaS agent-based monitoring with a very detailed PostgreSQL plugin. It automatically gathers 100s of stats, displays dashboards on every aspect and sends alerts when something goes wrong (Commercial Software)
dexter 1,901 5 months ago The automatic indexer for Postgres. Detects slow queries and creates indexes if configured to do so

Awesome Postgres / Contents / Extensions

Citus 10,609 6 days ago Scalable PostgreSQL cluster for real-time workloads
cstore_fdw 1,759 over 3 years ago Columnar store for analytics with PostgreSQL
cyanaudit Cyan Audit provides in-database logging of all DML activity on a column-by-column basis
pg_analytics 6,218 5 days ago pg_analytics is an extension that accelerates analytical query processing inside Postgres to a performance level comparable to dedicated OLAP databases
pg_lakehouse 6,218 5 days ago pg_lakehouse is an extension that transforms Postgres into an analytical query engine over object stores like AWS S3/GCS and table formats like Delta Lake/Iceberg
pg_search 6,218 5 days ago pg_search is a PostgreSQL extension that enables full-text search over SQL tables using the BM25 algorithm, the state-of-the-art ranking function for full-text search
pg_cron 2,885 3 months ago Run periodic jobs in PostgreSQL
pglogical 1,027 about 2 months ago Extension that provides logical streaming replication
pg_partman 2,098 5 days ago Partition management extension for PostgreSQL
pg_paxos 305 about 2 years ago Basic implementation of Paxos and Paxos-based table replication for a cluster of PostgreSQL nodes
pg_shard 1,059 over 8 years ago Extension to scale out real-time reads and writes
PGStrom Extension to offload CPU intensive workloads to GPU
pgxn PostgreSQL Extension Network - central distribution point for many open-source PostgreSQL extensions
PipelineDB A PostgreSQL extension that runs SQL queries continuously on streams, incrementally storing results in tables
plpgsql_check 646 about 1 month ago Extension that allows to check plpgsql source code
PostGIS Spatial and Geographic objects for PostgreSQL
PG_Themis 30 almost 8 years ago Postgres binding as extension for crypto library Themis, providing various security services on PgSQL's side
zomboDB 4,684 19 days ago Extension that enables efficient full-text searching via the use of indexes backed by Elasticsearch
pgMemento 384 about 1 year ago Provides an audit trail for your data inside a PostgreSQL database using triggers and server-side functions written in PL/pgSQL
TimescaleDB Open-source time-series database fully compatible with Postgres, distributed as extension
pgTAP Database testing framework for Postgres
HypoPG 1,388 about 2 months ago HypoPG provides hypothetical/virtual indexes feature
pgRouting 1,168 7 days ago pgRouting extends the PostGIS/PostgreSQL geospatial database to provide geospatial routing and other network analysis functionality
PGroonga PGroonga provides a new index access method that uses Groonga allowing super fast full text search feature against all languages
PGAudit The PostgreSQL Audit Extension (or pgaudit) provides detailed session and/or object audit logging via the standard logging facility provided by PostgreSQL
PostgresML Machine learning and AI inside your database, including vectors, LLMs, and classic ML. Train, predict and manage the entire lifecycle of machine learning models using only SQL

Awesome Postgres / Contents / Optimization

pg_flame 1,575 almost 5 years ago A flamegraph generator for query plans
PgHero 8,181 13 days ago PostgreSQL insights made easy
pgMustard A modern user interface for , that also provides performance tips (Commercial Software)
pgtune 1,053 over 3 years ago PostgreSQL configuration wizard
pgtune 2,209 11 days ago Online version of PostgreSQL configuration wizard
pgconfig.org 90 over 4 years ago PostgreSQL Online Configuration Tool (also based on pgtune)
PoWA PostgreSQL Workload Analyzer gathers performance stats and provides real-time charts and graphs to help monitor and tune your PostgreSQL servers
pg_web_stats 95 about 6 years ago Web UI to view pg_stat_statements
TimescaleDB Tune 450 8 days ago a program for tuning a TimescaleDB database to perform its best based on the host's resources such as memory and number of CPUs
Metis Metis provides observability and performance tuning for SQL databases including PostgreSQL. (Commercial Software)

Awesome Postgres / Contents / Utilities

apgdiff Compares two database dump files and creates output with DDL statements that can be used to update old database schema to new one
ERAlchemy 1,162 2 months ago ERAlchemy generates Entity Relation (ER) diagram from databases
Hasura GraphQL Engine 31,179 7 days ago Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events
ldap2pg 211 about 1 month ago Synchronize roles and privileges from YML and LDAP
mysql-postgresql-converter 1,285 about 2 years ago Lanyrd's MySQL to PostgreSQL conversion script
ora2pg Perl module to export an Oracle database schema to a PostgreSQL compatible schema
pg_activity 2,483 about 1 month ago top like application for PostgreSQL server activity monitoring
pg-formatter 80 9 months ago A PostgreSQL SQL syntax beautifier (Node.js)
pganalyze PostgreSQL Performance Monitoring (Commercial Software)
pgbadger 3,562 5 months ago Fast PostgreSQL Log Analyzer
PgBouncer Lightweight connection pooler for PostgreSQL
pgCenter 1,551 6 months ago Provides convenient interface to various statistics, management task, reloading services, viewing log files and canceling or terminating database backends
pg_chameleon 384 5 months ago Real time replica from MySQL to PostgreSQL with optional type override migration and migration capabilities
pgclimb 390 over 4 years ago Export data from PostgreSQL into different data formats
pg_docs_bot 16 4 months ago Browser extension to redirect PostgreSQL docs links to the current version
pgfutter 1,328 about 4 years ago Import CSV and JSON into PostgreSQL the easy way
PGInsight CLI tool to easily dig deep inside your PostgreSQL database
pg_insights 300 almost 5 years ago Convenient SQL for monitoring Postgres database health
pgloader 5,435 2 months ago Loads data into PostgreSQL using the COPY streaming protocol, and does so with separate threads for reading and writing data
pgMonitor 591 16 days ago Postgres metrics collection and visualization that can be deployed to bare metal, virtual machines, or Kubernetes
pgpool-II Middleware that provides connection pooling, replication, load balancing and limiting exceeding connections
pgspot 68 6 days ago Spot vulnerabilities in PostgreSQL extension scripts
pgsync 3,178 about 1 month ago Tool to sync PostgreSQL data to your local machine
PGXN client 140 5 months ago Command line tool to interact with the PostgreSQL Extension Network
postgresql-metrics 590 over 1 year ago Tool that extracts and provides metrics for your PostgreSQL database
PostgREST 23,440 6 days ago Serves a fully RESTful API from any existing PostgreSQL database
pREST 4,236 16 days ago Serve a RESTful API from any PostgreSQL database (Golang)
PostGraphile 12,613 6 days ago Instant GraphQL API or GraphQL schema for your PostgreSQL database
yoke 1,344 almost 9 years ago PostgreSQL high-availability cluster with auto-failover and automated cluster recovery
pglistend 28 over 7 years ago A lightweight PostgresSQL / daemon built on top of
ZSON 541 over 1 year ago PostgreSQL extension for transparent JSONB compression
pg_bulkload It's a high speed data loading utility for PostgreSQL
pg_migrate 31 about 7 years ago Manage PostgreSQL codebases and make VCS simple
sqitch 2,780 6 months ago Tool for managing versioned schema deployment
pgmigrate 631 about 1 month ago CLI tool to evolve schema migrations, developed by Yandex
pgcmp 42 6 months ago Tool to compare database schemas, with capability to accept some persistent differences
pg-differ 36 over 3 years ago Tool for easy initialization / updating of the structure of PostgreSQL tables, migration alternative (Node.js)
sqlcheck 2,432 9 months ago Automatically detects common SQL anti-patterns. Such anti-patterns often slow down queries. Addressing them will, therefore, help accelerate queries
postgres-checkup a new-generation diagnostics tool that allows users to collect deep analysis of the health of a Postgres database
ScaffoldHub.io Generate fullstack PostgreSQL apps with Angular, Vue or React (Commercial Software)

Awesome Postgres / Contents / Language bindings

Postmodern 400 3 months ago Common Lisp:
clj-postgresql 161 over 2 years ago Clojure:
postgrex 1,116 9 days ago Elixir:
pq 9,127 4 months ago Go: ,
postgresql-simple Haskell:
PostgreSQL JDBC Driver Java:
Npgsql 3,327 7 days ago .Net/.Net Core:
node-postgres 12,331 20 days ago Node: , , , ,
DBD-Pg Perl:
Pomm PHP: ,
psycopg2 Python: ,
RPostgreSQL 64 11 months ago R:
pg 796 6 days ago Ruby:
rust-postgresql 3,509 2 months ago Rust: ,
luapgsql 112 almost 2 years ago Lua:

Awesome Postgres / Contents / PaaS (PostgreSQL as a Service)

Aiven PostgreSQL PostgreSQL as a service in AWS, Azure, DigitalOcean, Google Cloud and UpCloud; plans range from $19/month single node instances to large highly-available setups, free trial for two weeks
Amazon RDS for PostgreSQL Amazon Relational Database Service (RDS) for PostgreSQL
Azure Database for PostgreSQL Azure Database for PostgreSQL provides fully managed, enterprise-ready community PostgreSQL database as a service. It provides builtin HA, elastic scaling and native integration with Azure ecosystem
Crunchy Bridge Fully managed Postgres from the Postgres experts. Available across all major cloud providers: Amazon AWS, Google GCP, Microsoft Azure. No lock-in with full super-user support
Database Labs Get a production-ready cloud PostgreSQL server in minutes, from $20 a month Backups, monitoring, patches, and 24/7 tech support all included
DigitalOcean Managed Databases Fully managed PostgreSQL databases. No free plan. Starting at $15/mo. Daily backups with point-in-time recovery. Standby nodes with auto-failover
Google Cloud SQL for PostgreSQL Fully-managed database service that makes it easy to set up, maintain, manage, and administer your PostgreSQL relational databases on Google Cloud Platform
Heroku Postgres Plans from free to huge, operated by PostgreSQL experts. Does not require running your app on Heroku. Free plan includes 10,000 rows, 20 connections, up to two backups, and has PostGIS support
Render Managed PostgreSQL Secure, reliable, and completely hands-off managed PostgreSQL. Encryption at rest, automated backups, and expandable SSD storage included in all plans. Plans start at $7 per month for 256MB RAM and 1GB storage (free for first 90 days)
Scaleway Managed Database Fully managed PostgreSQL databases with HA, scaling, and automated backups, hosted in the EU. Starting at €10 per month
Supabase Fully managed Postgres with read replicas, point-in-time-recovery, support packages, browser based GUI, and a generous free tier
Neon Fully managed serverless PostgreSQL. Neon separates storage and compute to offer modern developer features such as serverless, branching, bottomless storage, and more

Awesome Postgres / Contents / Docker images

citusdata/citus Citus official images with citus extensions. Based on the official Postgres container
mdillon/postgis PostGIS 2.3 on Postgres 9. Based on the official Postgres container
paradedb/paradedb ParadeDB is Postgres for Search and Analytics. Based on the Bitnami Postgres container with pg_search and pg_analytics Postgres extensions
postgres Official postgres container (from Docker)

Awesome Postgres / Resources / Tutorials

Backup and recover a PostgreSQL DB using wal-e Tutorial about setting up continuous archiving in PostgreSQL using wal-e
PG Casts Free weekly PostgreSQL screencasts by Hashrocket
Postgres Guide Guide designed as an aid for beginners and experienced users to find specific tips and explore tools available within PostgreSQL
PostgreSQL Exercises Site to make it easy to learn PostgreSQL by doing exercises
tutorialspoint PostgreSQL tutorial Very extensive collection of tutorials on PostgreSQL
postgresDBSamples 488 about 1 year ago A collection of sample postgres schemas
PostgreSQL Primer for Busy People A collection of the most common commands used in PostgreSQL
pg-utils 1,043 3 months ago Useful DBA tools by Data Egret

Awesome Postgres / Resources / Blogs

Planet PostgreSQL Blog aggregation service for PostgreSQL
Andrew Dunstan's PostgreSQL and Technical blog
Bruce Momjian's PostgreSQL blog
Craig Kerstiens PostgreSQL posts Set of posts on PostgreSQL cool features, tips and tricks
Database Soup Josh Berkus' blog
Michael Paquier's blog
Robert Haas' blog
select * from depesz; Hubert Lubaczewski's blog
Metis Blog Set of posts on PostgreSQL, SQL databases, performance, and tuning

Awesome Postgres / Resources / Articles

What PostgreSQL has over other open source SQL databases: Part I
What PostgreSQL has over other open source SQL databases: Part II
the ultimate postgres vs mysql blog post
Debugging PostgreSQL performance, the hard way
Why use Postgres?
Superfast CSV imports using PostgreSQL's COPY command
Tricking Postgres into using an insane – but 200x faster – query plan

Awesome Postgres / Resources / Books

PostgreSQL Mistakes and How to Avoid Them

Awesome Postgres / Resources / Documentation

Wiki user documentation, how-tos, and tips 'n' tricks
pgPedia An encyclopedia of things related to postgreSQL

Awesome Postgres / Resources / Newsletters

Postgres Weekly Weekly newsletter that contains articles, news, and repos relevant to PostgreSQL

Awesome Postgres / Resources / Videos

Citus Data Youtube channel Citus related videos
EnterpriseDB Youtube channel EnterpriseDB related videos
Postgres Conference Youtube channel Conference videos
Scaling Postgres Postgres video blog series by Creston Jamison

Awesome Postgres / Resources / Community

Mailing lists Official mailing lists for Postgres for support, outreach, and more. One of the primary channels of communication in the Postgres community
Reddit A reddit community for PostgreSQL users with over 12000 users
Slack Slack channel for Postgres with over 7000 users
Russian Telegram - Several groups for PostgreSQL in different languages: >4200 people, >2300 people, ~1000 people, >750 people
#postgresql on Freenode The most popular IRC channel about Postgres on Freenode with over 1000 users

Awesome Postgres / Resources / Roadmaps

PostgreSQL Roadmap A roadmap providing step wise guide to PostgreSQL

Backlinks from these awesome lists:

More related projects: