GIT 是用于管理 PostgreSQL 源代码的修订控制/源代码管理 (SCM) 系统。
最初,PostgreSQL 使用 CVS 进行源代码控制,并在 2010 年迁移到 GIT [1]。许多相关的 PostgreSQL 项目现在也使用 GIT。
备注
[1] "Lessons from PostgreSQL's Git transition" - https://lwn.net/Articles/409635/
用法
可以使用以下命令克隆 PostgreSQL GIT 存储库:
git clone https://git.postgresql.org/git/postgresql.git
无需密码或身份验证。在平均下载速度约为 6MiB/s 的快速连接上,克隆整个存储库大约需要 60 秒。
请注意,截至 2025 年 5 月,git:// 协议支持已停用,并且可能已被完全撤销(请参阅 pgsql-www 线程 git repo "https://" working but "git://" is not)。
参考资料
- PostgreSQL Documentation: 通过 Git 获取源代码
- PostgreSQL wiki: 使用 Git
- PostgreSQL GIT 存储库,可在线浏览: https://git.postgresql.org/
- GitHub 上的 PostgreSQL 项目镜像: https://github.com/postgres
有用链接
- 同时开发多个版本的 PostgreSQL - 2019 年 Craig Ringer 的博文
