Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop PGXN install section, reword install sections #55

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 12 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,14 @@ certain revisions and the difference generated between any two given revisions.
The extension uses a PL/PgSQL trigger based system to record and provide access
to the row revisions.

Easy Installation
-----------------
Install [pgxn-client](http://pgxnclient.projects.pgfoundry.org) which is hosted
on PyPI:
Installing
----------

$ sudo easy_install pgxnclient

Then do:

$ sudo pgxn install table_version

or
sudo pgxn load -d my_db table_version

(Run pgxn --help for more info)

Hard Installation
-----------------

To build it, just do this:
To build it, install it and check the installation, just do this:

make
make installcheck
make install
make installcheck

If you encounter an error such as:

Expand Down Expand Up @@ -77,22 +61,23 @@ Building Debian packaging

Build the Debian packages using the following command:

dpkg-buildpackage -us -uc -b
make deb

Installing the extension
------------------------
Enabling the extension in a database
------------------------------------

Once table_version is installed, you can add it to a database. If you're running
Once `table_version` is installed, you can add it to a database. If you're running
PostgreSQL 9.1.0 or greater, it's a simple as connecting to a database as a
super user and running:

CREATE EXTENSION table_version;

The extension will install support configuration tables and functions into the
table_version schema.
`table_version` schema.

If you've upgraded your cluster to PostgreSQL 9.1 and already had table_version
installed, you can upgrade it to a properly packaged extension with:
If you've upgraded your cluster to PostgreSQL 9.1 and already had
`table_version` installed, you can upgrade it to a properly packaged
extension with:

CREATE EXTENSION table_version FROM unpackaged;

Expand Down