当前位置: 首页 > 软件库 > 数据库相关 > >

awesome-postgres

授权协议 CC0-1.0 License
开发语言 C/C++
所属分类 数据库相关
软件类型 开源软件
地区 不详
投 递 者 陈允晨
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Awesome Postgres

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

PostgreSQL, often simply Postgres, is an object-relational database (ORDBMS). PostgreSQL is ACID-compliant and transactional. (see more: wikipedia:PostgreSQL, PostgreSQL.org)

�� Contributions welcome. Add links through pull requests or create an issue to start a discussion. Please take a look at the contribution guidelines.

Contents

High-Availability

  • BDR - BiDirectional Replication - a multimaster replication system for PostgreSQL
  • Patroni - Template for PostgreSQL HA with ZooKeeper or etcd.
  • Stolon - PostgreSQL HA based on Consul or etcd, with Kubernetes integration.
  • pglookout - Replication monitoring and failover daemon.
  • repmgr - 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 - PostgreSQL Automatic Failover: High-Availibility for Postgres, based on Pacemaker and Corosync.
  • SkyTools - Replication tools, including PgQ, a queuing system, and Londiste, a replication system a bit simpler to manage than Slony.

Backups

  • Barman - Backup and Recovery Manager for PostgreSQL by 2ndQuadrant.
  • OmniPITR - Advanced WAL File Management Tools for PostgreSQL.
  • pg_probackup – 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 - pg_back is a simple backup script
  • pghoard - Backup and restore tool for cloud object stores (AWS S3, Azure, Google Cloud, OpenStack Swift).
  • wal-e - Simple Continuous Archiving for PostgreSQL to S3, Azure, or Swift by Heroku.
  • wal-g - 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.

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 EnvironmentFor Database Management
  • pgAdmin - PostgreSQL Administration and Management GUI.
  • pgModeler - pgModeler is an open-source PostgreSQL Database Modeler.
  • pgweb - Web-based PostgreSQL database browser written in Go.
  • phpPgAdmin - The Premier Web Based Administration Tool for PostgreSQL.
  • Postbird - 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 - 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)

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.

CLI

  • pgcli - Postgres CLI with autocompletion and syntax highlighting
  • pgsh - Branch your PostgreSQL Database like Git
  • psql - The built-in PostgreSQL CLI client
  • psql2csv - 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 - SchemaSpy is a JAVA JDBC-compliant tool for generating your database to HTML documentation, including Entity Relationship diagrams

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.

Monitoring

  • check_pgactivity - check_pgactivity is designed to monitor PostgreSQL clusters from Nagios. It offers many options to measure and monitor useful performance metrics.
  • Check_postgres - Nagios check_postgres plugin for checking status of PostgreSQL databases.
  • Instrumental - Real-time performance monitoring, including pre-made graphs for ease of setup (Commercial Software)
  • libzbxpgsql - Comprehensive PostgreSQL monitoring module for Zabbix.
  • PMM - Percona Monitoring and Management (PMM) is a Free and Open Source platform for monitoring and managing PostgreSQL, MySQL, and MongoDB.
  • Pome - 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 - Open-source command-line tool that shows global system stats, per-partition information, memory stats and other information.
  • pgwatch2 - 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).

Extensions

  • Citus - Scalable PostgreSQL cluster for real-time workloads.
  • cstore_fdw - Columnar store for analytics with PostgreSQL.
  • cyanaudit - Cyan Audit provides in-database logging of all DML activity on a column-by-column basis.
  • pg_cron - Run periodic jobs in PostgreSQL.
  • pglogical - Extension that provides logical streaming replication.
  • pg_partman - Partition management extension for PostgreSQL.
  • pg_paxos - Basic implementation of Paxos and Paxos-based table replication for a cluster of PostgreSQL nodes.
  • pg_shard - 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 - Extension that allows to check plpgsql source code.
  • PostGIS - Spatial and Geographic objects for PostgreSQL.
  • PG_Themis - Postgres binding as extension for crypto library Themis, providing various security services on PgSQL's side.
  • zomboDB - Extension that enables efficient full-text searching via the use of indexes backed by Elasticsearch.
  • pgMemento - 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 - HypoPG provides hypothetical/virtual indexes feature.
  • pgRouting - pgRouting extends the PostGIS/PostgreSQL geospatial database to provide geospatial routing and other network analysis functionality.

Optimization

  • pg_flame - A flamegraph generator for query plans.
  • PgHero - PostgreSQL insights made easy.
  • pgMustard - A modern user interfacefor EXPLAIN, that also provides performance tips (Commercial Software).
  • pgtune - PostgreSQL configuration wizard.
  • pgtune - Online version of PostgreSQL configuration wizard.
  • pgconfig.org - 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 - Web UI to view pg_stat_statements.
  • TimescaleDB Tune - a program for tuning a TimescaleDB database to perform its best based on the host's resources such as memory and number of CPUs.

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 - ERAlchemy generates Entity Relation (ER) diagram from databases.
  • Hasura GraphQL Engine - Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events.
  • ldap2pg - Synchronize roles and privileges from YML and LDAP.
  • mysql-postgresql-converter - Lanyrd's MySQL to PostgreSQL conversion script.
  • ora2pg - Perl module to export an Oracle database schema to a PostgreSQL compatible schema.
  • pg_activity - top like application for PostgreSQL server activity monitoring.
  • pg-formatter - A PostgreSQL SQL syntax beautifier (Node.js).
  • pganalyze - PostgreSQL Performance Monitoring (Commercial Software).
  • pgbadger - Fast PostgreSQL Log Analyzer.
  • PgBouncer - Lightweight connection pooler for PostgreSQL.
  • pgCenter - Provides convenient interface to various statistics, management task, reloading services, viewing log files and canceling or terminating database backends.
  • pg_chameleon - Real time replica from MySQL to PostgreSQL with optional type override migration and migration capabilities.
  • pgclimb - Export data from PostgreSQL into different data formats.
  • pg_docs_bot - Browser extension to redirect PostgreSQL docs links to the current version.
  • pgfutter - Import CSV and JSON into PostgreSQL the easy way.
  • PGInsight - CLI tool to easily dig deep inside your PostgreSQL database.
  • pg_insights - Convenient SQL for monitoring Postgres database health.
  • pgloader - Loads data into PostgreSQL using the COPY streaming protocol, and does so with separate threads for reading and writing data.
  • pgpool-II - Middleware that provides connection pooling, replication, load balancing and limiting exceeding connections.
  • pgsync - Tool to sync PostgreSQL data to your local machine.
  • PGXN client - Command line tool to interact with the PostgreSQL Extension Network
  • postgresql-metrics - Tool that extracts and provides metrics for your PostgreSQL database.
  • PostgREST - Serves a fully RESTful API from any existing PostgreSQL database.
  • pREST - Serve a RESTful API from any PostgreSQL database (Golang)
  • PostGraphile - Instant GraphQL API or GraphQL schema for your PostgreSQL database
  • yoke - PostgreSQL high-availability cluster with auto-failover and automated cluster recovery.
  • pglistend - A lightweight PostgresSQL LISTEN/NOTIFY daemon built on top of node-postgres.
  • ZSON - PostgreSQL extension for transparent JSONB compression
  • pg_bulkload - It's a high speed data loading utility for PostgreSQL.
  • pg_migrate - Manage PostgreSQL codebases and make VCS simple.
  • sqitch - Tool for managing versioned schema deployment
  • pgmigrate - CLI tool to evolve schema migrations, developed by Yandex.
  • pgcmp - Tool to compare database schemas, with capability to accept some persistent differences
  • pg-differ - Tool for easy initialization / updating of the structure of PostgreSQL tables, migration alternative (Node.js).
  • sqlcheck - 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).

Language bindings

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.
  • Citus Cloud - Production grade scaled out PostgreSQL as a service enabling real-time workloads and sharding your multi-tenant apps.
  • Compose - PostgreSQL as a service in AWS, Google Cloud Platform, and IBM Cloud; plans range from $17.5/month for 1GB storage and scale at $12/GB beyond that. Free trial for 30 days available.
  • 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.
  • ElephantSQL - Offers databases ranging from shared servers for smaller projects and proof of concepts, up to enterprise grade multi server setups. Has free plan for up to 5 DBs, 20 MB each.
  • 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.
  • Scaleway Managed Database - Fully managed PostgreSQL databases with HA, scaling, and automated backups, hosted in the EU. Starting at €10 per month.

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.
  • postgres - Official postgres container (from Docker)

Resources

Tutorials

Blogs

Articles

Documentation

  • Wiki - user documentation, how-tos, and tips 'n' tricks

Newsletters

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

Videos

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
  • Telegram - Several groups for PostgreSQL in different langauges: Russian >4200 people, Brazilian Portuguese >2300 people, Indonesian ~1000 people, English >750 people
  • #postgresql on Freenode - The most popular IRC channel about Postgres on Freenode with over 1000 users
  • 一、在默认配置条件下,本机访问PostgreSQL 切换到Linux用户postgres,然后执行psql: $ su - postgres Last login: Wed Mar 1 13:16:48 CST 2017 on pts/1 -bash-4.2$ psql psql (9.2.18) Type "help" for help. postgres=# 此时就在数据库postgres中了

  • 1.  Bruce Momjian URL:http://momjian.us/main/blogs/pgblog/2013.html 2.  德哥 URL:http://blog.163.com/digoal@126/blog/#m=0 3.  kenyon URL:http://my.oschina.net/Kenyon/blog?catalog=0&p=4 4. Bean_lee URL:h

  • 我应该怎样学习 SQL ? 首先考虑上述提到的与PostgreSQL相关的书籍。我们的许多用户喜欢The Practical SQL Handbook,  Bowman, Judith S. 编写,Addison-Wesley公司出版,其他的则喜欢 The Complete Reference  SQL, Groff 编写,McGraw-Hill公司出版。 在下列网址上也有很好的教程,他们是 ht

  • (1)和Oracle类似的dblink功能 使用过oracle的人都知道,oracle有个很先进 的功能叫:dblink,能够在一个数据库中操作另外一个远程的数据库,比如:一个数据库在中国北京,另外一台数据库在中国上海,我可以在北京这台数据库 上面建立一个到上海数据库的dblink,然后可以在北京这台数据库上面对上海的数据库进行query或者update或者delete。这个先进的功能 在Post

  • 参考:https://blog.csdn.net/u011024160/article/details/51372820?locationNum=9&fps=1 转载: postgresql中可以导出某个sql的执行结果到文件中,方法是在psql中首先执行\o filename,然后执行要导出结果的sql语句即可,可以看到刚刚执行的sql执行结果已经在filename中了。方便,强大,赞! 举个例

  • 安装php扩展        解压进入扩展包,运行一下命令         1)         /Applications/MxSrvs/bin/php/bin/phpize         (若没有生成configure 文件,则说明系统缺少 autoconf ,使用 brew install autoconf)         就能生成对应php版本的扩展包         2)      

  • (1)用户实用程序: createdb 创建一个新的PostgreSQL的数据库(和SQL语句:CREATE DATABASE 相同) createuser 创建一个新的PostgreSQL的用户(和SQL语句:CREATE USER 相同) dropdb 删除数据库 dropuser 删除用户 pg_dump 将PostgreSQL数据库导出到一个脚本文件 pg_dumpall 将所有的Post

  • 1. 清空表 清空表: TRUNCATE TABLE table_name; 清空表并还原自增id: TRUNCATE TABLE raw_lte_cell RESTART IDENTITY; 2. 基本功能 postgresql基本功能:创建表、新增列、修改列字段名称、某列值自增或循环自增 https://blog.csdn.net/zsc201825/article/details/84

  • 转载自官方中文文档 名称 ANALYZE -- 收集与数据库有关的统计信息 语法 ANALYZE [ VERBOSE ] [ table [ (column [, ...] ) ] ] 描述 ANALYZE 收集表内容的统计信息,然后把结果保存在系统表 pg_statistic 里。随后,查询规划器就可以使用这些统计帮助判断查询的最佳规划。 如果没有参数,ANALYZE 检查当前数据库里的所有表。

  • Postgres分析文档 已有 103 次阅读 2011-12-12 15:35 |个人分类:postgres|系统分类:科研笔记|关键词:class pp blank windows target Postgres分析时候的一些文档,希望对大家有帮助吧, 由于文件是在linux中做的文本,由于纯文本在windows中读不方便,尤其是文中的tab符号,不是很对齐,所以就打印 成为了pdf。 PG_

  •    今天在做跨库数据同步时突然发现对方的数据库是PostgreSQL,而之前没有用过这个数据库。然后到网上找了下资料,结果是一般的增删改查的语句应该基本不用改,但是oracle里面有个merge语句在PostgreSQL关键字不太一样,所以单独拿出来记录下。    碰到这个问题后我首先去百度了下PostgreSQL merge into ,发现找不到没有什么有用的信息,好在还有bing。用bin

  • WAL机制 持久性指事务提交后对系统的影响必须是永久的,即使系统意外宕机,也必须确保事务修改的数据已真正永久写入到永久存储中。 最简单的实现方法,是在事务提交后立即将修改的数据写到磁盘。但磁盘和内存之间的IO操作是最影响数据库性能的。 WAL(Write Ahead Logging),预写日志,即在数据修改后写到磁盘前,先把日志写到磁盘。确保重做日志时可以恢复事务的一致性状态,而不会有部分执行的事

  • 1.query how large space the table takes up in one schema. SELECT         tablename,         pg_size_pretty(pg_relation_size(schemaname || '.' || tablename)) FROM         pg_tables WHERE         schema

  • 1. mac postgres 安装 dmg包安装即可。 2.   命令 命令 作用 psql -U username -d dbname -h 127.0.0.1 例子: /Library/PostgreSQL/9.4/bin/psql -U postgres /Library/PostgreSQL/9.4/bin/psql -U postgres -d testdb 登录/连接数据库 \l 

  • 创建带游标的存储过程 drop procedure if exists phoneDeal; delimiter // create procedure phoneDeal() begin declare zjid varchar(64); -- 主键id declare path varchar(200); -- 路径 declare createTime

  • information_schema.tables 官网文档 tables 本身是一个视图,**包含当前数据库中定义的所有表和视图。**只显示当前用户可以访问的那些表和视图 Name Description table_catalog 包含这个表或视图的数据库的名称(总是当前数据库) table_schema 模式 table_name 表名 table_type 表类型:对于持久基表是BASE

 相关资料
  • Awesome Awesome Node.js A curated list of awesome lists that are about or related to Node.js. Inspired by the awesome list thing, going deeper down the rabbit hole. �� Meta stuff about this awesome li

  • A curated list of awesome things related to Vite.js This awesome list is for Vite 2.x and onward. Vite 1.x's list is archived. Resources Official Resources 文档 GitHub Repo Release Notes Vue 3 Docs Awes

  • Awesome Python 是一个资源整理集合,由 vinta 发起和维护。内容包括:Web框架、网络爬虫、网络内容提取、模板引擎、数据库、数据可视化、图片处理、文本处理、自然语言处理、机器学习、日志、代码分析等。 这个系列没有推荐 Python 书籍、经典博文、交互教程,所以另外推荐:《25本免费的Python电子书》、《学习Python编程的11个(教程)资源》、《PythonMonk:Py

  • Font Awesome 是一个图标工具包。其已经被重新设计并从头构建。除此之外,还增加了一些功能,比如 icon font ligature、SVG 框架、流行的前端库(如 React)的官方 NPM 包,以及对新 CDN 的访问。Font Awesome 已扩展至 7,865 个图标。

  • awesome-android 收录了来自 github 或其他网站的关于 Android 的大部分库。

  • The Lithe Project Development Team Awesome CryptoNote A curated list of awesome CryptoNote open-source blockchains, resources, projects, and shiny other things related.Many projects are derived from f