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
1.**[Query Store](concepts-query-store.md)** is enabled on your database. If Query Store is not running, the Azure portal will prompt you to enable it. To enable Query Store, refer [here](concepts-query-store.md#enable-query-store)
27
+
1.**[Query Store](concepts-query-store.md)** is enabled on your database. If Query Store is not running, the Azure portal will prompt you to enable it. To enable Query Store, refer [here](concepts-query-store.md#enable-query-store).
28
28
29
29
> [!NOTE]
30
-
> **Query Store** is currently **disabled**. This troubleshooting guide depends on Query Store data. You need to enable it by setting the dynamic server parameter `pg_qs.query_capture_mode` to either **ALL** or **TOP**.
30
+
> **Query Store** is currently **disabled**. Query Performance Insight depends on Query Store data. You need to enable it by setting the dynamic server parameter `pg_qs.query_capture_mode` to either **ALL** or **TOP**.
31
31
32
-
2.**[Query Store Wait Sampling](concepts-query-store.md)** is enabled on your database. If Query Store Wait Sampling is not running, the Azure portal will prompt you to enable it. To enable Query Store Wait Sampling, refer [here](concepts-query-store.md#enable-query-store-wait-sampling)
32
+
2.**[Query Store Wait Sampling](concepts-query-store.md)** is enabled on your database. If Query Store Wait Sampling is not running, the Azure portal will prompt you to enable it. To enable Query Store Wait Sampling, refer [here](concepts-query-store.md#enable-query-store-wait-sampling).
33
33
34
34
> [!NOTE]
35
-
> **Query Store Wait Sampling** is currently **disabled**. This troubleshooting guide depends on Query Store wait sampling data. You need to enable it by setting the dynamic server parameter `pgms_wait_sampling.query_capture_mode` to **ALL**.
35
+
> **Query Store Wait Sampling** is currently **disabled**. Query Performance Insight depends on Query Store wait sampling data. You need to enable it by setting the dynamic server parameter `pgms_wait_sampling.query_capture_mode` to **ALL**.
36
36
37
-
3.**[Log analytics workspace](howto-configure-and-access-logs.md)** is configured for storing 3 log categories including - PostgreSQL Sessions logs, PostgreSQL Query Store and Runtime and PostgreSQL Query Store Wait Statistics. To configure log analytics, refer [Log analytics workspace](howto-configure-and-access-logs.md#configure-diagnostic-settings)
37
+
3.**[Log analytics workspace](howto-configure-and-access-logs.md)** is configured for storing 3 log categories including - PostgreSQL Sessions logs, PostgreSQL Query Store and Runtime and PostgreSQL Query Store Wait Statistics. To configure log analytics, refer [Log analytics workspace](howto-configure-and-access-logs.md#configure-diagnostic-settings).
38
38
39
39
> [!NOTE]
40
40
> The **Query Store data is not being transmitted to the log analytics workspace**. The PostgreSQL logs (Sessions data / Query Store Runtime / Query Store Wait Statistics) is not being sent to the log analytics workspace, which is necessary to use Query Performance Insight . To configure the logging settings for category PostgreSQL sessions and send the data to a log analytics workspace.
The [Query Performance Insight](concepts-query-performance-insight.md) view in the Azure portal will surface visualizations on key information from Query Store. Query Performance Insight is easy to use:
45
45
46
46
1. Open the Azure portal and find a postgres instance that you want to examine.
47
-
2. From the left-side menu, open **Intelligent Performance** > **Query Performance Insight**
47
+
2. From the left-side menu, open **Intelligent Performance** > **Query Performance Insight**.
48
48
3. Select a **time range** for investigating queries.
49
49
4. On the first tab, review the list of **Long Running Queries**.
50
50
5. Use sliders or zoom to change the observed interval.
@@ -53,12 +53,12 @@ The [Query Performance Insight](concepts-query-performance-insight.md) view in t
53
53
6. Optionally, you can select the **custom** to specify a time range.
54
54
55
55
> [!NOTE]
56
-
> For Azure PostgreSQL Flexible Server to render the information in Query Performance Insight, **Query Store needs to capture a couple hours of data**. If the database has no activity or if Query Store was not active during a certain period, the charts will be empty when Query Performance Insight displays that time range. You can enable Query Store at any time if it's not running. For more information, see [Best practices with Query Store](concepts-query-store-best-practices.md)
56
+
> For Azure PostgreSQL Flexible Server to render the information in Query Performance Insight, **Query Store needs to capture a couple hours of data**. If the database has no activity or if Query Store was not active during a certain period, the charts will be empty when Query Performance Insight displays that time range. You can enable Query Store at any time if it's not running. For more information, see [Best practices with Query Store](concepts-query-store-best-practices.md).
57
57
58
58
7. To **view details** of a specific query, click the `QueryId Snapshot` dropdown.
59
59
:::image type="content" source="./media/concepts-query-performance-insight/2-individual-query-details.png" alt-text="Screenshot of viewing details of a specific query.":::
60
60
61
-
8. To get the **Query Text** of a specific query, connect to the `azure_sys` database on the server and query `query_store.query_texts_view` with the `QueryId`
61
+
8. To get the **Query Text** of a specific query, connect to the `azure_sys` database on the server and query `query_store.query_texts_view` with the `QueryId`.
62
62
:::image type="content" source="./media/concepts-query-performance-insight/3-view-query-text.png" alt-text="Screenshot of getting query text of a specific query.":::
63
63
64
64
9. On the Consecutive tabs, you can find other query insights including:
@@ -71,7 +71,7 @@ The [Query Performance Insight](concepts-query-performance-insight.md) view in t
71
71
72
72
## Considerations
73
73
74
-
* Query Performance Insight is not available for [read replicas](concepts-read-replicas.md)
74
+
* Query Performance Insight is not available for [read replicas](concepts-read-replicas.md).
75
75
* For Query Performance Insight to function, data must exist in the Query Store. Query Store is an opt-in feature, so it isn't enabled by default on a server. Query store is enabled or disabled globally for all databases on a given server and cannot be turned on or off per database.
76
76
* Enabling Query Store on the Burstable pricing tier may negatively impact performance; therefore, it is not recommended.
0 commit comments