postgres/postgres: PostgreSQL source code mirror
The official read-only GitHub mirror of the PostgreSQL source repository. Browse the code and history here; patches go through the project's mailing lists, not pull requests.
Not checked by a trusted editor yet Last edited Outdated?
postgres/postgres
- Stars
- 22.4k
- Forks
- 6k
- Language
- C
- Licence
- NOASSERTION
- Last push
- 15 Oct 2026
On GitHub: Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch
Open on GitHubThis repository mirrors the official PostgreSQL Git repository, the source of the server, psql, pg_dump, pg_basebackup and the other bundled tools, plus the contrib modules such as pg_stat_statements. It is a convenient place to read code, search history with GitHub’s interface or link to a specific line.
It is only a mirror: the project does not work with GitHub pull requests. Contributions are sent as patches to the developers’ mailing list, as described on the PostgreSQL wiki page about submitting a patch, and bugs are reported through the project’s bug form or mailing list.
Release branches are named like REL_18_STABLE, and the documentation sources live under doc/src/sgml, which is useful when you want to see exactly when a setting or message changed.
See also
- 0198 Install PostgreSQL and connect with psql on Debian, Ubuntu and RHEL Install the PostgreSQL server from your distribution or the official PGDG repositories, start it, and open your first psql session as the… Beginner · How-to · Linux Article Install & connect 15 Oct 2026
- 0199 psql meta-commands cheat sheet The backslash commands you use every day in psql: connecting, listing databases, tables and roles, describing objects, timing queries, expanded output and… Beginner · Reference · Any system Article Install & connect · Roles & administration 15 Oct 2026
- 0200 PostgreSQL roles, privileges and default privileges Create login and group roles, grant access to databases, schemas and tables, and use ALTER DEFAULT PRIVILEGES so tables created later get… Intermediate · How-to · Linux Article Roles & administration · Security & access 15 Oct 2026
- 0201 pg_hba.conf and PostgreSQL authentication methods pg_hba.conf decides who may connect from where and how they must prove who they are. Rules are checked top to bottom and… Intermediate · Concept · Linux Article Install & connect · Security & access 15 Oct 2026
- 0202 Back up and restore PostgreSQL with pg_dump, pg_restore and pg_dumpall Make logical backups of one database with pg_dump, of roles and the whole cluster with pg_dumpall, and restore them with pg_restore or… Beginner · How-to · Linux Article Backup & restore 15 Oct 2026
- 0203 Physical backups and point-in-time recovery with pg_basebackup and WAL archiving A base backup plus a continuous archive of WAL files lets you restore a PostgreSQL cluster to any moment after the backup,… Advanced · Concept · Linux Article Backup & restore · Replication & high availability 15 Oct 2026
History
Every saved edit is kept. The plot on the sleeve draws one line per edit. Open any edit to see exactly what changed.
- Commitpedia +772 chars