pg

Description

Pg is the Ruby interface to the PostgreSQL RDBMS.

It works with PostgreSQL 8.2 and later.

This will be the last minor version to support 8.2 – 0.13 will support 8.3 and later, following the PostgreSQL Release Support Policy.

Requirements

  • Ruby 1.8.7-p249 or later.

  • PostgreSQL 8.2.x or later installed.

It may work with earlier versions as well, but those are not regularly tested.

How To Install

Install via RubyGems:

gem install pg

You may need to specify the path to the ‘pg_config’ program installed with Postgres:

gem install pg -- --with-pg-config=<path to pg_config>

See README.OS_X.rdoc for more information about installing under MacOS X, and README.windows.rdoc for Windows build/installation instructions.

Contributing

To report bugs, suggest features, or check out the source with Mercurial, check out the project page. If you prefer Git, there’s also a Github mirror.

After checking out the source, run:

$ rake newb

This task will install any missing dependencies, run the tests/specs, and generate the API documentation.

Copying

This library is copyrighted by the authors.

Authors:

Thanks to:

Maintainers:

You may redistribute this software under the terms of the Ruby license, included in the file “LICENSE”. The Ruby license also allows distribution under the terms of the GPL, included in the file “GPL”.

Portions of the code are from the PostgreSQL project, and are distributed under the terms of the BSD license, included in the file “BSD”.

Portions copyright LAIKA, Inc.

Acknowledgments

We are thankful to the people at the ruby-list and ruby-dev mailing lists. And to the people who developed PostgreSQL.