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: about 2 years ago
Linked from 7 awesome lists

databasepostgrespostgresql

Awesome Postgres / Contents / High-Availability

BDR359over 6 years agoBiDirectional Replication - a multimaster replication system for PostgreSQL
Patroni6,924almost 2 years agoTemplate for PostgreSQL HA with ZooKeeper or etcd
Stolon4,665about 2 years agoPostgreSQL HA based on Consul or etcd, with Kubernetes integration
pglookout185almost 2 years agoReplication monitoring and failover daemon
repmgr1,584almost 2 years agoOpen-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
PAF342over 2 years agoPostgreSQL Automatic Failover: High-Availibility for Postgres, based on Pacemaker and Corosync
SkyTools248about 9 years agoReplication tools, including PgQ, a queuing system, and Londiste, a replication system a bit simpler to manage than Slony

Awesome Postgres / Contents / Backups

BarmanBackup and Recovery Manager for PostgreSQL by 2ndQuadrant
OmniPITR177about 7 years agoAdvanced WAL File Management Tools for PostgreSQL
pg_probackup719almost 2 years 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
pgBackRestReliable PostgreSQL Backup & Restore
pg_back536almost 2 years agopg_back is a simple backup script
pghoard1,324almost 2 years agoBackup and restore tool for cloud object stores (AWS S3, Azure, Google Cloud, OpenStack Swift)
wal-e3,457over 2 years ago(obsolete) - Simple Continuous Archiving for PostgreSQL to S3, Azure, or Swift by Heroku
wal-g3,358almost 2 years agoThe 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
pitrerypitrery is a set of Bash scripts to manage Point In Time Recovery (PITR) backups for PostgreSQL

Awesome Postgres / Contents / GUI

AdminerFull-featured database management tool written in PHP
Beekeeper StudioFree and open source SQL client with a modern UI and great Postgres support. Cross platform
ChartbrewCreate live dashboards, charts, and client reports from PostgreSQL data. Features a query tool that works with SQL
CountWeb-based analytics platform with a notebook interface which connects to PostgreSQL (Commercial Software)
DataGripIDE with advanced tool sets and good cross-platform experience (Commercial Software)
DatazenitWeb-based PostgreSQL GUI (Commercial Software)
DataRowCross-platform SQL Client for Amazon Redshift: Simple, Effortless, Extensible
DBeaverUniversal Database Manager with excellent support for PostgreSQL
dbglassCross-platform desktop client for PostgreSQL, built with Electron
HolisticsOnline cross platform database management tool and SQL query reporting GUI with strong PostgreSQL support (Commercial Software)
JackDBWeb-based SQL query interface (Commercial Software)
MetabaseSimple dashboards, charts and query tool for PostgreSQL
NumeracyFast SQL editor with charts and dashboards for PostgreSQL (Commercial Software)
OmniDBOpen Source Collaborative Environment For Database Management
pgAdminPostgreSQL Administration and Management GUI
pgModelerpgModeler is an open-source PostgreSQL Database Modeler
pgweb8,678almost 2 years agoWeb-based PostgreSQL database browser written in Go
phpPgAdmin806about 2 years agoThe Premier Web Based Administration Tool for PostgreSQL
Postbird1,551over 3 years agoPostgreSQL Client for macOS
PostgresCompareCross-platform database comparison and deployment tool (Commercial Software)
PosticoModern PostgreSQL Client for macOS (Commercial Software)
PSequelClean and simple interface to perform common PostgreSQL tasks quickly (Commercial Software)
SQL TabsCross Platform Desktop Client for PostgreSQL written in JS
SQLPro for PostgresSimple, powerful PostgreSQL manager for macOS (Commercial Software)
temBoard466almost 2 years agoWeb-based PostgreSQL GUI and monitoring
TablePlusNative App which let you edit database and structure. High-end security ensured (Commercial Software)
Valentina StudioCross-platform database administration tool (Free/Commercial)
DbGateThe Smartest (no)SQL Database Client

Awesome Postgres / Contents / Distributions

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

Awesome Postgres / Contents / CLI

atlas6,124almost 2 years agoAtlas is a tool for managing and migrating database schemas using modern DevOps principles
pgcli12,182almost 2 years agoPostgres CLI with autocompletion and syntax highlighting
pgsh569over 3 years agoBranch your PostgreSQL Database like Git
psqlThe built-in PostgreSQL CLI client
psql2csv184over 4 years agoRun a query in psql and output the result as CSV
nancyThe Nancy CLI is a unified way to manage automated database experiments either in clouds or on-premise
schemaspy3,234about 2 years agoSchemaSpy is a JAVA JDBC-compliant tool for generating your database to HTML documentation, including Entity Relationship diagrams

Awesome Postgres / Contents / Server

Postgres-XLScalable Open Source PostgreSQL-based Database Cluster
AgensGraphPowerful graph database based on the PostgreSQL
Greenplum DatabaseOpen source fork of PostgreSQL for large data volumes
YugabyteDBOpen Source Distributed SQL using a fork of PostgreSQL on top of distributed storage and transaction

Awesome Postgres / Contents / Monitoring

check_pgactivity175about 2 years agocheck_pgactivity is designed to monitor PostgreSQL clusters from Nagios. It offers many options to measure and monitor useful performance metrics
Check_postgres562over 2 years agoNagios check_postgres plugin for checking status of PostgreSQL databases
Instrumental14almost 8 years agoReal-time performance monitoring, including for ease of setup (Commercial Software)
libzbxpgsql157almost 3 years agoComprehensive PostgreSQL monitoring module for Zabbix
PMM688over 1 year agoPercona Monitoring and Management (PMM) is a Free and Open Source platform for monitoring and managing PostgreSQL, MySQL, and MongoDB
Pome1,088about 6 years agoPome stands for PostgreSQL Metrics. Pome is a PostgreSQL Metrics Dashboard to keep track of the health of your database
pgmetricspgmetrics 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_view494over 3 years agoOpen-source command-line tool that shows global system stats, per-partition information, memory stats and other information
pgwatch21,836almost 2 years agoFlexible and easy to get started PostgreSQL metrics monitor focusing on Grafana dashboards
pgbenchRun a benchmark test on PostgreSQL
opm.ioOpen 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.ioCommercial 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)
dexter1,911about 2 years agoThe automatic indexer for Postgres. Detects slow queries and creates indexes if configured to do so

Awesome Postgres / Contents / Extensions

Citus10,728over 1 year agoScalable PostgreSQL cluster for real-time workloads
cstore_fdw1,758over 5 years agoColumnar store for analytics with PostgreSQL
cyanauditCyan Audit provides in-database logging of all DML activity on a column-by-column basis
pg_analytics6,317over 1 year agopg_analytics is an extension that accelerates analytical query processing inside Postgres to a performance level comparable to dedicated OLAP databases
pg_lakehouse6,317over 1 year agopg_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_search6,317over 1 year agopg_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_cron2,942almost 2 years agoRun periodic jobs in PostgreSQL
pglogical1,042almost 2 years agoExtension that provides logical streaming replication
pg_partman2,139almost 2 years agoPartition management extension for PostgreSQL
pg_paxos304about 4 years agoBasic implementation of Paxos and Paxos-based table replication for a cluster of PostgreSQL nodes
pg_shard1,058about 10 years agoExtension to scale out real-time reads and writes
PGStromExtension to offload CPU intensive workloads to GPU
pgxnPostgreSQL Extension Network - central distribution point for many open-source PostgreSQL extensions
PipelineDBA PostgreSQL extension that runs SQL queries continuously on streams, incrementally storing results in tables
plpgsql_check653almost 2 years agoExtension that allows to check plpgsql source code
PostGISSpatial and Geographic objects for PostgreSQL
PG_Themis30almost 10 years agoPostgres binding as extension for crypto library Themis, providing various security services on PgSQL's side
zomboDB4,687almost 2 years agoExtension that enables efficient full-text searching via the use of indexes backed by Elasticsearch
pgMemento385almost 3 years agoProvides an audit trail for your data inside a PostgreSQL database using triggers and server-side functions written in PL/pgSQL
TimescaleDBOpen-source time-series database fully compatible with Postgres, distributed as extension
pgTAPDatabase testing framework for Postgres
HypoPG1,397almost 2 years agoHypoPG provides hypothetical/virtual indexes feature
pgRouting1,176over 1 year agopgRouting extends the PostGIS/PostgreSQL geospatial database to provide geospatial routing and other network analysis functionality
PGroongaPGroonga provides a new index access method that uses Groonga allowing super fast full text search feature against all languages
PGAuditThe PostgreSQL Audit Extension (or pgaudit) provides detailed session and/or object audit logging via the standard logging facility provided by PostgreSQL
PostgresMLMachine 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_flame1,578over 6 years agoA flamegraph generator for query plans
PgHero8,223almost 2 years agoPostgreSQL insights made easy
pgMustardA modern user interface for , that also provides performance tips (Commercial Software)
pgtune1,054about 5 years agoPostgreSQL configuration wizard
pgtune2,245almost 2 years agoOnline version of PostgreSQL configuration wizard
pgconfig.org90about 6 years agoPostgreSQL Online Configuration Tool (also based on pgtune)
PoWAPostgreSQL Workload Analyzer gathers performance stats and provides real-time charts and graphs to help monitor and tune your PostgreSQL servers
pg_web_stats95almost 8 years agoWeb UI to view pg_stat_statements
TimescaleDB Tune453almost 2 years agoa program for tuning a TimescaleDB database to perform its best based on the host's resources such as memory and number of CPUs
MetisMetis provides observability and performance tuning for SQL databases including PostgreSQL. (Commercial Software)

Awesome Postgres / Contents / Utilities

apgdiffCompares two database dump files and creates output with DDL statements that can be used to update old database schema to new one
ERAlchemy1,176almost 2 years agoERAlchemy generates Entity Relation (ER) diagram from databases
Hasura GraphQL Engine31,236almost 2 years agoBlazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events
ldap2pg211almost 2 years agoSynchronize roles and privileges from YML and LDAP
mysql-postgresql-converter1,286almost 4 years agoLanyrd's MySQL to PostgreSQL conversion script
ora2pgPerl module to export an Oracle database schema to a PostgreSQL compatible schema
pg_activity2,493almost 2 years agotop like application for PostgreSQL server activity monitoring
pg-formatter80over 2 years agoA PostgreSQL SQL syntax beautifier (Node.js)
pganalyzePostgreSQL Performance Monitoring (Commercial Software)
pgbadger3,597almost 2 years agoFast PostgreSQL Log Analyzer
PgBouncerLightweight connection pooler for PostgreSQL
pgCenter1,551almost 2 years agoProvides convenient interface to various statistics, management task, reloading services, viewing log files and canceling or terminating database backends
pg_chameleon385over 2 years agoReal time replica from MySQL to PostgreSQL with optional type override migration and migration capabilities
pgclimb391about 6 years agoExport data from PostgreSQL into different data formats
pg_docs_bot16about 2 years agoBrowser extension to redirect PostgreSQL docs links to the current version
pgfutter1,328about 6 years agoImport CSV and JSON into PostgreSQL the easy way
PGInsightCLI tool to easily dig deep inside your PostgreSQL database
pg_insights301almost 7 years agoConvenient SQL for monitoring Postgres database health
pgloader5,507almost 2 years agoLoads data into PostgreSQL using the COPY streaming protocol, and does so with separate threads for reading and writing data
pgMonitor601almost 2 years agoPostgres metrics collection and visualization that can be deployed to bare metal, virtual machines, or Kubernetes
pgpool-IIMiddleware that provides connection pooling, replication, load balancing and limiting exceeding connections
pgspot78almost 2 years agoSpot vulnerabilities in PostgreSQL extension scripts
pgsync3,201almost 2 years agoTool to sync PostgreSQL data to your local machine
PGXN client143over 2 years agoCommand line tool to interact with the PostgreSQL Extension Network
postgresql-metrics591over 3 years agoTool that extracts and provides metrics for your PostgreSQL database
PostgREST24,080almost 2 years agoServes a fully RESTful API from any existing PostgreSQL database
pREST4,247almost 2 years agoServe a RESTful API from any PostgreSQL database (Golang)
PostGraphile12,633almost 2 years agoInstant GraphQL API or GraphQL schema for your PostgreSQL database
yoke1,343over 10 years agoPostgreSQL high-availability cluster with auto-failover and automated cluster recovery
pglistend28over 9 years agoA lightweight PostgresSQL / daemon built on top of
ZSON540over 3 years agoPostgreSQL extension for transparent JSONB compression
pg_bulkloadIt's a high speed data loading utility for PostgreSQL
pg_migrate32almost 9 years agoManage PostgreSQL codebases and make VCS simple
sqitch2,881over 2 years agoTool for managing versioned schema deployment
pgmigrate633almost 2 years agoCLI tool to evolve schema migrations, developed by Yandex
pgcmp43over 2 years agoTool to compare database schemas, with capability to accept some persistent differences
pg-differ36over 5 years agoTool for easy initialization / updating of the structure of PostgreSQL tables, migration alternative (Node.js)
sqlcheck2,435over 2 years agoAutomatically detects common SQL anti-patterns. Such anti-patterns often slow down queries. Addressing them will, therefore, help accelerate queries
postgres-checkupa new-generation diagnostics tool that allows users to collect deep analysis of the health of a Postgres database
ScaffoldHub.ioGenerate fullstack PostgreSQL apps with Angular, Vue or React (Commercial Software)

Awesome Postgres / Contents / Language bindings

Postmodern400about 2 years agoCommon Lisp:
clj-postgresql161over 4 years agoClojure:
postgrex1,126almost 2 years agoElixir:
pq9,193almost 2 years agoGo: ,
postgresql-simpleHaskell:
PostgreSQL JDBC DriverJava:
Npgsql3,354almost 2 years ago.Net/.Net Core:
node-postgres12,393almost 2 years agoNode: , , , ,
DBD-PgPerl:
PommPHP: ,
psycopg2Python: ,
RPostgreSQL64over 2 years agoR:
pg804almost 2 years agoRuby:
rust-postgresql3,542about 2 years agoRust: ,
luapgsql112over 3 years agoLua:

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

Aiven PostgreSQLPostgreSQL 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 PostgreSQLAmazon Relational Database Service (RDS) for PostgreSQL
Azure Database for PostgreSQLAzure 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 BridgeFully 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 LabsGet a production-ready cloud PostgreSQL server in minutes, from $20 a month Backups, monitoring, patches, and 24/7 tech support all included
DigitalOcean Managed DatabasesFully 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 PostgreSQLFully-managed database service that makes it easy to set up, maintain, manage, and administer your PostgreSQL relational databases on Google Cloud Platform
Heroku PostgresPlans 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 PostgreSQLSecure, 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 DatabaseFully managed PostgreSQL databases with HA, scaling, and automated backups, hosted in the EU. Starting at €10 per month
SupabaseFully managed Postgres with read replicas, point-in-time-recovery, support packages, browser based GUI, and a generous free tier
NeonFully 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/citusCitus official images with citus extensions. Based on the official Postgres container
mdillon/postgisPostGIS 2.3 on Postgres 9. Based on the official Postgres container
paradedb/paradedbParadeDB is Postgres for Search and Analytics. Based on the Bitnami Postgres container with pg_search and pg_analytics Postgres extensions
postgresOfficial postgres container (from Docker)

Awesome Postgres / Resources / Tutorials

Backup and recover a PostgreSQL DB using wal-eTutorial about setting up continuous archiving in PostgreSQL using wal-e
PG CastsFree weekly PostgreSQL screencasts by Hashrocket
Postgres GuideGuide designed as an aid for beginners and experienced users to find specific tips and explore tools available within PostgreSQL
PostgreSQL ExercisesSite to make it easy to learn PostgreSQL by doing exercises
tutorialspoint PostgreSQL tutorialVery extensive collection of tutorials on PostgreSQL
postgresDBSamples495almost 3 years agoA collection of sample postgres schemas
PostgreSQL Primer for Busy PeopleA collection of the most common commands used in PostgreSQL
pg-utils1,053about 2 years agoUseful DBA tools by Data Egret

Awesome Postgres / Resources / Blogs

Planet PostgreSQLBlog aggregation service for PostgreSQL
Andrew Dunstan's PostgreSQL and Technical blog
Bruce Momjian's PostgreSQL blog
Craig Kerstiens PostgreSQL postsSet of posts on PostgreSQL cool features, tips and tricks
Database SoupJosh Berkus' blog
Michael Paquier's blog
Robert Haas' blog
select * from depesz;Hubert Lubaczewski's blog
Metis BlogSet 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

Wikiuser documentation, how-tos, and tips 'n' tricks
pgPediaAn encyclopedia of things related to postgreSQL

Awesome Postgres / Resources / Newsletters

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

Awesome Postgres / Resources / Videos

Citus Data Youtube channelCitus related videos
EnterpriseDB Youtube channelEnterpriseDB related videos
Postgres Conference Youtube channelConference videos
Scaling PostgresPostgres video blog series by Creston Jamison

Awesome Postgres / Resources / Community

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

Awesome Postgres / Resources / Roadmaps

PostgreSQL RoadmapA roadmap providing step wise guide to PostgreSQL

Backlinks from these awesome lists:

More related projects: