I.1. 获得源代码通过Git

使用 Git 你可以从源代码库复制一份完整源代码到你的本机上, 这样你就可以离线访问所有的代码历史和分支。这是开发或者测试补丁最为快捷并且灵活的方式。

Git

  1. 你将需要一个已经安装的Git, 你可以从 http://git-scm.com得到。 大多数操作系统已经默认安 装有最新版的 Git , 或者在软件包管理系统里提供了下载安装。

  2. 为了开始使用Git源码库, 从官方的镜像里制作一份克隆:

    git clone git://git.postgresql.org/git/postgresql.git
    

    这将会完全拷贝源到你的本地机器上, 所以直到拷贝完成会花费一段时间, 尤其当你的网络连接非常慢时候。 代码文件会放置在当前目录一个新的名为 postgresql 的子目录里。

    Git的镜像同样可以通过HTTP协议来获取, 假如你的防火墙阻止你通过Git协议 访问。 仅需要修改URL的协议为 http, 例如:

    git clone http://git.postgresql.org/git/postgresql.git
    

    HTTP协议是效率较低的相比于Git协议, 所以使用起来会更慢。

  3. 每当你想在系统得到最近更新时, cd 到源目录, 运行:

    git fetch
    

Git 不仅仅获取资源,还能做很多其它的事情。更多详情, 参考 Git 手册页, 或者查看 网站 http://git-scm.com

Legal Notice

PostgreSQL is Copyright © 1996-2013 by the PostgreSQL Global Development Group.

Postgres95 is Copyright © 1994-5 by the Regents of the University of California.

Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.

IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS-IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.