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

In the case of pg_store_plans, there is a note in Q8, but I added it … #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions doc/pg_statsinfo-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,16 @@ pg_statsinfo
は「インスタンスID」でインスタンスを識別します。インスタンスIDは監視対象サーバのホスト名、ポート番号とpg_controldata
が表示するデータベースシステム識別子から生成されます。この中でマスタのホスト名はフェイルオーバーの際に変わることが普通なためこのようになります。

#### Q11. pg_stat_statements をインストールしているのにレポートでプランの統計情報が出てきません。

pg_stat_statements が public 以外のスキーマにインストールされている可能性があります。
この場合はログを確認すると繰り返し以下の様なエラーが記録されているはずです。

ERROR: pg_statsinfo: query failed: ERROR: relation "pg_stat_statements" does not exist

この場合は一旦 DROP EXTENSION したのち、明示的にスキーマを public と指定して CREATE EXTENSION を実行しなおしてください。

CREATE EXTENSION pg_stat_statements SCHEMA public;

## pg_statsinfo15からの変更点

Expand Down
12 changes: 11 additions & 1 deletion doc/pg_statsinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,17 @@ pg_controldata shows. Among the triplet, the host name of the master
will generally be changed by a fail over so this situation happens.
Currently there is no available means of preventing this occurring.


#### Q11. There's no plan statistics in a textual report although pg_stat_statements has been installed.

pg_stat_statements may be installed in the schema other than "public". You
will find the following lines in server log for the case.

ERROR: pg_statsinfo: query failed: ERROR: relation "pg_stat_statements" does not exist

Do DROP EXTENSION, then CREATE EXTENSION again explicitly specifying
public as installation schema in order to fix this.

CREATE EXTENSION pg_stat_statements SCHEMA public;

## Changes from pg_statsinfo15

Expand Down