Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbd7009

Browse files
committed
typo
1 parent48367b6 commitfbd7009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎0012_from_pgss_to_explain__how_to_find_query_examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ It is possible to find examples in the Postgres log – of course, if they are l
6767
1. For PG14+, option[compute_query_id](https://postgresqlco.nf/doc/en/param/compute_query_id/) can provide the same queryid value that is used in pg_stat_statements, to the log entry.
6868
2. Alternatively, we can use an excellent library[libpg_query](https://github.com/pganalyze/libpg_query; Ruby, Go, Python and other options are also available). It can be applied both to normalized (`pgss` records) and individual queries, producing so-called fingerprint, that can be then used to find the relationships we need.
6969

70-
In general, using Postgres logs to find query examples is a good method, but for heavily-loaded systems, where it is impossible to log all queries, it is going to supply us with very slow examples only – those that exceed[log_min_duration_statatement](https://postgresqlco.nf/doc/en/param/log_min_duration_statement/) (usually set to some quite high value, e.g.`500ms`).
70+
In general, using Postgres logs to find query examples is a good method, but for heavily-loaded systems, where it is impossible to log all queries, it is going to supply us with very slow examples only – those that exceed[log_min_duration_statement](https://postgresqlco.nf/doc/en/param/log_min_duration_statement/) (usually set to some quite high value, e.g.`500ms`).
7171

7272
This situation can be improved with sampling and lowering the threshold for slow queries or even getting rid of it completely. Parameters for it:
7373
-[log_min_duration_sample](https://postgresqlco.nf/doc/en/param/log_min_duration_sample/) (PG13+)
@@ -105,4 +105,4 @@ TBD:
105105

106106
As a reminder, once you have good examples, the best (fastest&cheapest) way to verify optimization ideas is to use properly tuned thin clones – check out[DBLab](https://twitter.com/Database_Lab).
107107

108-
---
108+
---

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp