You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/concepts-query-store.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,17 @@ Query Store is an opt-in feature, so it isn't enabled by default on a server. Qu
22
22
> Do not enable Query Store on Burstable pricing tier as it would cause performance impact.
23
23
24
24
25
-
### Enable Query Store using the Azure portal
25
+
### Enable Query Store
26
26
1. Sign in to the Azure portal and select your Azure Database for PostgreSQL server.
27
27
2. Select **Server Parameters** in the **Settings** section of the menu.
28
28
3. Search for the `pg_qs.query_capture_mode` parameter.
29
29
4. Set the value to `TOP` or `ALL` and **Save**.
30
30
Allow up to 20 minutes for the first batch of data to persist in the azure_sys database.
31
-
To enable wait statistics in your Query Store:
31
+
32
+
### Enable Query Store Wait Sampling
32
33
1. Search for the `pgms_wait_sampling.query_capture_mode` parameter.
33
34
2. Set the value to `ALL` and **Save**.
35
+
34
36
## Information in Query Store
35
37
Query Store has two stores:
36
38
- A runtime stats store for persisting the query execution statistics information.
@@ -165,7 +167,8 @@ This view returns the query plan that was used to execute a query. There is one
165
167
`staging_data_reset` discards all statistics gathered in memory by Query Store (that is, the data in memory that has not been flushed yet to the database). This function can only be executed by the server admin role.
166
168
167
169
## Limitations and known issues
168
-
- If a PostgreSQL server has the parameter default_transaction_read_only on, Query Store will not capture any data.
170
+
- If a PostgreSQL server has the parameter `default_transaction_read_only` on, Query Store will not capture any data.
171
+
-
169
172
## Next steps
170
173
- Learn more about [scenarios where Query Store can be especially helpful](concepts-query-store-scenarios.md).
171
174
- Learn more about [best practices for using Query Store](concepts-query-store-best-practices.md).
0 commit comments