0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

alpine 上の postgresql に pg_hint_plan を使う

Last updated at Posted at 2020-11-29

環境

alpine
psql (PostgreSQL) 9.6.19

やり方

apk update
apk add gcc make git musl-dev

git clone git://git.osdn.net/gitroot/pghintplan/pg_hint_plan.git

cd pg_hint_plan
git checkout refs/tags/REL96_1_2_7
make
make install

# 任意の database で有効化
psql -d databse1 -c "CREATE EXTENSION pg_hint_plan"
echo "shared_preload_libraries = 'pg_hint_plan'" >> /var/lib/postgresql/data/postgresql.conf"

上記実行後、 postgresql インスタンス再起動後に有効になります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?