From 48e0e6bc302814e69b0026fd0f2660b4d69cb4db Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Wed, 1 May 2024 08:18:42 +0900 Subject: [PATCH] doc: Add instructions about how to install the module from PGDG's package Per pull request #182. Author: avandras Bakpatch-through: 14 --- docs/installation.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index e82e202..3c4b340 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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 @@ -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--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`