Skip to content

Commit

Permalink
doc: Add instructions about how to install the module from PGDG's pac…
Browse files Browse the repository at this point in the history
…kage

Per pull request #182.

Author: avandras
Bakpatch-through: 14
  • Loading branch information
michaelpq committed Apr 30, 2024
1 parent 0687351 commit 419ccd7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This section describes the installation steps.

## building binary module
## Building binary module

Simply run `make` at the top of the source tree, then `make install` as an
appropriate user. The `PATH` environment variable should be set properly
Expand All @@ -14,6 +14,20 @@ to point to a PostgreSQL set of binaries:
$ su
$ make install

## Installing from a binary package

On Debian and Ubuntu `pg_hint_plan` is available as a binary package from the
pgdg (PostgreSQL Global Development Group) repository. Assuming you've
already added the repository to `apt` sources, installing the package is as
simple as:

```
sudo apt install postgresql-<postgres version>-pg-hint-plan
```

Please visit https://www.postgresql.org/download/linux/ if you need help at
adding the repository.

## Loading `pg_hint_plan`

`pg_hint_plan` does not require `CREATE EXTENSION`. Loading it with a `LOAD`
Expand Down

0 comments on commit 419ccd7

Please sign in to comment.