クエリ ストアによるパフォーマンスの監視Monitor performance with the Query Store
適用対象: Azure Database for PostgreSQL - 単一サーバー バージョン 9.6 以降Applies to: Azure Database for PostgreSQL - Single Server versions 9.6 and above
Azure Database for PostgreSQL のクエリ ストア機能では、一定期間にわたってクエリ パフォーマンスを追跡する手段が提供されます。The Query Store feature in Azure Database for PostgreSQL provides a way to track query performance over time. クエリ ストアを使用すると、実行時間が最長のクエリおよびリソースを最も消費しているクエリを迅速に特定できるので、パフォーマンスのトラブルシューティングが簡単になります。Query Store simplifies performance troubleshooting by helping you quickly find the longest running and most resource-intensive queries. クエリ ストアでは、クエリおよびランタイム統計の履歴が自動的にキャプチャされて保持されるので、それらを確認できます。Query Store automatically captures a history of queries and runtime statistics, and it retains them for your review. データベースの使用パターンを確認できるように、データが時間枠で区切られます。It separates data by time windows so that you can see database usage patterns. すべてのユーザー、データベース、クエリに関するデータが Azure Database for PostgreSQL インスタンス内の azure_sys という名前のデータベースに格納されます。Data for all users, databases, and queries is stored in a database named azure_sys in the Azure Database for PostgreSQL instance.
重要
azure_sys データベースまたはそのスキーマを変更しないでください。Do not modify the azure_sys database or its schemas. そうすると、クエリ ストアおよび関連するパフォーマンス機能が正しく機能しません。Doing so will prevent Query Store and related performance features from functioning correctly.
クエリ ストアの有効化Enabling Query Store
クエリ ストアはオプトイン機能なので、既定ではサーバー上でアクティブになりません。Query Store is an opt-in feature, so it isn't active by default on a server. ストアは特定のサーバー上のすべてのデータベースに対してグローバルで有効または無効になり、データベースごとにオンまたはオフにすることはできません。The store is enabled or disabled globally for all the databases on a given server and cannot be turned on or off per database.
Azure portal を使用してクエリ ストアを有効にするEnable Query Store using the Azure portal
- Azure portal にサインインし、ご利用の Azure Database for PostgreSQL サーバーを選択します。Sign in to the Azure portal and select your Azure Database for PostgreSQL server.
- メニューの [設定] セクションで、 [サーバー パラメーター] を選択します。Select Server Parameters in the Settings section of the menu.
pg_qs.query_capture_mode
パラメーターを検索します。Search for thepg_qs.query_capture_mode
parameter.- 値を
TOP
に設定して 保存 します。Set the value toTOP
and Save.
クエリ ストアでの待機統計を有効にするには、次の手順に従います。To enable wait statistics in your Query Store:
pgms_wait_sampling.query_capture_mode
パラメーターを検索します。Search for thepgms_wait_sampling.query_capture_mode
parameter.- 値を
ALL
に設定して 保存 します。Set the value toALL
and Save.
または Azure CLI を使用して、これらのパラメーターを設定することもできます。Alternatively you can set these parameters using the Azure CLI.
az postgres server configuration set --name pg_qs.query_capture_mode --resource-group myresourcegroup --server mydemoserver --value TOP
az postgres server configuration set --name pgms_wait_sampling.query_capture_mode --resource-group myresourcegroup --server mydemoserver --value ALL
azure_sys データベースに保持するデータの最初のバッチには、最大で 20 分ほどかかります。Allow up to 20 minutes for the first batch of data to persist in the azure_sys database.
クエリ ストア内の情報Information in Query Store
クエリ ストアには、次の 2 つのストアがあります。Query Store has two stores:
- クエリ実行の統計情報を保持するためのランタイム統計ストア。A runtime stats store for persisting the query execution statistics information.
- 待機統計情報を保持するための待機統計ストア。A wait stats store for persisting wait statistics information.
クエリ ストアを使用するための一般的なシナリオは次のとおりです。Common scenarios for using Query Store include:
- 指定された時間枠内にクエリが実行された回数を確認するDetermining the number of times a query was executed in a given time window
- 大きなデルタを確認するために時間枠間でクエリの平均実行回数を比較するComparing the average execution time of a query across time windows to see large deltas
- 過去 X 時間に実行時間が最も長かったクエリを識別するIdentifying longest running queries in the past X hours
- リソースを待機している上位 N 件のクエリを特定するIdentifying top N queries that are waiting on resources
- 特定のクエリの待機の性質を理解するUnderstanding wait nature for a particular query
領域の使用量を最小限に抑えるために、ランタイム統計ストア内のランタイム実行統計は、固定の構成可能な時間枠で集計されます。To minimize space usage, the runtime execution statistics in the runtime stats store are aggregated over a fixed, configurable time window. これらのストア内の情報は、クエリ ストアのビューに対してクエリを実行することで表示できます。The information in these stores is visible by querying the query store views.
クエリ ストア情報へのアクセスAccess Query Store information
クエリ ストア データは、Postgres サーバー上の azure_sys データベースに格納されます。Query Store data is stored in the azure_sys database on your Postgres server.
次のクエリでは、クエリ ストア内のクエリに関する情報が返されます。The following query returns information about queries in Query Store:
SELECT * FROM query_store.qs_view;
また、次のクエリは待機統計に関するものです。Or this query for wait stats:
SELECT * FROM query_store.pgms_wait_sampling_view;
待機クエリの検索Finding wait queries
待機イベントの種類では、類似性によってさまざまな待機イベントがバケットに結合されます。Wait event types combine different wait events into buckets by similarity. クエリ ストアでは、待機イベントの種類、特定の待機イベント名、対象のクエリが提供されます。Query Store provides the wait event type, specific wait event name, and the query in question. この待機情報をクエリのランタイム統計に関連付けられることは、クエリのパフォーマンス特性に何が寄与しているかをより深く理解できることを意味します。Being able to correlate this wait information with the query runtime statistics means you can gain a deeper understanding of what contributes to query performance characteristics.
クエリ ストア内の待機統計を使用してワークロードの詳細な分析情報を得る方法の例を次にいくつか示します。Here are some examples of how you can gain more insights into your workload using the wait statistics in Query Store:
観測Observation | 操作Action |
---|---|
ロック待機が長いHigh Lock waits | 影響を受けているクエリのクエリ テキストを確認し、ターゲット エンティティを識別します。Check the query texts for the affected queries and identify the target entities. 同じエンティティを変更する他のクエリのクエリ ストアで、頻繁に実行されているクエリ、実行時間が長いクエリ、あるいはその両方を探します。Look in Query Store for other queries modifying the same entity, which is executed frequently and/or have high duration. これらのクエリを特定した後で、コンカレンシーを向上させるためにアプリケーション ロジックを変更するか、より制限の低い分離レベルを使用します。After identifying these queries, consider changing the application logic to improve concurrency, or use a less restrictive isolation level. |
バッファー IO 待機が長いHigh Buffer IO waits | クエリ ストア内で物理読み取り回数が多いクエリを検索します。Find the queries with a high number of physical reads in Query Store. それらと IO 待機が長いクエリが一致する場合は、スキャンではなくシークを実行するために、基になるエンティティへのインデックスの導入を検討します。If they match the queries with high IO waits, consider introducing an index on the underlying entity, in order to do seeks instead of scans. これにより、クエリの IO オーバーヘッドが最小限に抑えられます。This would minimize the IO overhead of the queries. ポータル上でサーバーの [パフォーマンスの推奨事項] を調べて、このサーバーに対してクエリを最適化するインデックスの推奨事項があるかどうかを確認します。Check the Performance Recommendations for your server in the portal to see if there are index recommendations for this server that would optimize the queries. |
メモリ待機が多いHigh Memory waits | クエリ ストア内で、メモリを最も消費しているクエリを探します。Find the top memory consuming queries in Query Store. おそらくこれらのクエリによって、影響を受けているクエリの進行がさらに遅れています。These queries are probably delaying further progress of the affected queries. ポータル上でサーバーの [パフォーマンスの推奨事項] を調べて、これらのクエリを最適化するインデックスの推奨事項があるかどうかを確認します。Check the Performance Recommendations for your server in the portal to see if there are index recommendations that would optimize these queries. |
構成オプションConfiguration options
クエリ ストアが有効になっている場合、データは 15 分間の集計ウィンドウで保存され、ウィンドウあたり最大 500 件の個別のクエリが保存されます。When Query Store is enabled it saves data in 15-minute aggregation windows, up to 500 distinct queries per window.
次のオプションは、クエリ ストア パラメーターを構成するために使用できます。The following options are available for configuring Query Store parameters.
パラメーターParameter | 説明Description | [Default]Default | RangeRange |
---|---|---|---|
pg_qs.query_capture_modepg_qs.query_capture_mode | 追跡対象のステートメントを設定します。Sets which statements are tracked. | なしnone | none、top、allnone, top, all |
pg_qs.max_query_text_lengthpg_qs.max_query_text_length | 保存できるクエリの最大長を設定します。Sets the maximum query length that can be saved. これより長いクエリは切り詰められます。Longer queries will be truncated. | 60006000 | 100 - 10K100 - 10K |
pg_qs.retention_period_in_dayspg_qs.retention_period_in_days | 保有期間を設定します。Sets the retention period. | 77 | 1 - 301 - 30 |
pg_qs.track_utilitypg_qs.track_utility | ユーティリティ コマンドを追跡するかどうかを設定しますSets whether utility commands are tracked | onon | on、offon, off |
待機統計には次のオプションが適用されます。The following options apply specifically to wait statistics.
パラメーターParameter | 説明Description | [Default]Default | RangeRange |
---|---|---|---|
pgms_wait_sampling.query_capture_modepgms_wait_sampling.query_capture_mode | 待機統計の追跡対象のステートメントを設定します。Sets which statements are tracked for wait stats. | なしnone | none、allnone, all |
Pgms_wait_sampling.history_periodPgms_wait_sampling.history_period | 待機イベントをサンプリングする頻度をミリ秒単位で設定します。Set the frequency, in milliseconds, at which wait events are sampled. | 100100 | 1-6000001-600000 |
注意
pg_qs.query_capture_mode は pgms_wait_sampling.query_capture_mode に優先します。pg_qs.query_capture_mode supersedes pgms_wait_sampling.query_capture_mode. pg_qs.query_capture_mode が NONE の場合、pgms_wait_sampling.query_capture_mode の設定は効果がありません。If pg_qs.query_capture_mode is NONE, the pgms_wait_sampling.query_capture_mode setting has no effect.
パラメーターに対して別の値を取得または設定するには Azure portal または Azure CLI を使用します。Use the Azure portal or Azure CLI to get or set a different value for a parameter.
ビューと関数Views and functions
次のビューと関数を使用してクエリ ストアを表示および管理します。View and manage Query Store using the following views and functions. PostgreSQL の public ロールに属するユーザーは、これらのビューを使用してクエリ ストア内のデータを表示できます。Anyone in the PostgreSQL public role can use these views to see the data in Query Store. これらのビューは、azure_sys データベース内でのみ使用できます。These views are only available in the azure_sys database.
クエリは、リテラルと定数を削除した後、その構造を調べることで正規化されます。Queries are normalized by looking at their structure after removing literals and constants. 2 つのクエリがリテラル値を除いて同一の場合、それらは同じハッシュを持ちます。If two queries are identical except for literal values, they will have the same hash.
query_store.qs_viewquery_store.qs_view
このビューでは、クエリ ストア内のすべてのデータが返されます。This view returns all the data in Query Store. 個別のデータベース ID、ユーザー ID、クエリ ID ごとに 1 つの行があります。There is one row for each distinct database ID, user ID, and query ID.
名前Name | TypeType | 参照References | 説明Description |
---|---|---|---|
runtime_stats_entry_idruntime_stats_entry_id | bigintbigint | runtime_stats_entries テーブルからの IDID from the runtime_stats_entries table | |
user_iduser_id | oidoid | pg_authid.oidpg_authid.oid | ステートメントを実行したユーザーの OIDOID of user who executed the statement |
db_iddb_id | oidoid | pg_database.oidpg_database.oid | ステートメントが実行されたデータベースの OIDOID of database in which the statement was executed |
query_idquery_id | bigintbigint | ステートメントの解析ツリーから計算される内部ハッシュ コードInternal hash code, computed from the statement's parse tree | |
query_sql_textquery_sql_text | Varchar(10000)Varchar(10000) | 代表的なステートメントのテキスト。Text of a representative statement. 同じ構造を持つ複数の異なるクエリがまとめてクラスター化されます。このテキストは、クラスター内の最初のクエリのテキストです。Different queries with the same structure are clustered together; this text is the text for the first of the queries in the cluster. | |
plan_idplan_id | bigintbigint | まだ使用できない、このクエリに対応するプランの IDID of the plan corresponding to this query, not available yet | |
start_timestart_time | timestamptimestamp | クエリは、タイム バケットによって集計されます。バケットの期間は既定で 15 分です。Queries are aggregated by time buckets - the time span of a bucket is 15 minutes by default. これは、このエントリのタイム バケットに対応する開始時刻です。This is the start time corresponding to the time bucket for this entry. | |
end_timeend_time | timestamptimestamp | このエントリのタイム バケットに対応する終了時刻。End time corresponding to the time bucket for this entry. | |
callscalls | bigintbigint | クエリの実行回数Number of times the query executed | |
total_timetotal_time | double precisiondouble precision | クエリの合計実行時間 (ミリ秒)Total query execution time, in milliseconds | |
min_timemin_time | double precisiondouble precision | クエリの最小実行時間 (ミリ秒)Minimum query execution time, in milliseconds | |
max_timemax_time | double precisiondouble precision | クエリの最大実行時間 (ミリ秒)Maximum query execution time, in milliseconds | |
mean_timemean_time | double precisiondouble precision | クエリの平均実行時間 (ミリ秒)Mean query execution time, in milliseconds | |
stddev_timestddev_time | double precisiondouble precision | クエリ実行時間の標準偏差 (ミリ秒)Standard deviation of the query execution time, in milliseconds | |
rowsrows | bigintbigint | ステートメントによって取得または影響された行の合計数Total number of rows retrieved or affected by the statement | |
shared_blks_hitshared_blks_hit | bigintbigint | ステートメントによる共有ブロック キャッシュ ヒットの合計数Total number of shared block cache hits by the statement | |
shared_blks_readshared_blks_read | bigintbigint | ステートメントによって読み取られた共有ブロックの合計数Total number of shared blocks read by the statement | |
shared_blks_dirtiedshared_blks_dirtied | bigintbigint | ステートメントによって使用された共有ブロックの合計数Total number of shared blocks dirtied by the statement | |
shared_blks_writtenshared_blks_written | bigintbigint | ステートメントによって書き込まれた共有ブロックの合計数Total number of shared blocks written by the statement | |
local_blks_hitlocal_blks_hit | bigintbigint | ステートメントによるローカル ブロック キャッシュ ヒットの合計数Total number of local block cache hits by the statement | |
local_blks_readlocal_blks_read | bigintbigint | ステートメントによって読み取られたローカル ブロックの合計数Total number of local blocks read by the statement | |
local_blks_dirtiedlocal_blks_dirtied | bigintbigint | ステートメンによって使用されたローカル ブロックの合計数Total number of local blocks dirtied by the statement | |
local_blks_writtenlocal_blks_written | bigintbigint | ステートメントによって書き込まれたローカル ブロックの合計数Total number of local blocks written by the statement | |
temp_blks_readtemp_blks_read | bigintbigint | ステートメントによって読み取られた一時ブロックの合計数Total number of temp blocks read by the statement | |
temp_blks_writtentemp_blks_written | bigintbigint | ステートメントによって書き込まれた一時ブロックの合計数Total number of temp blocks written by the statement | |
blk_read_timeblk_read_time | double precisiondouble precision | ステートメントによってブロックの読み取りに費やされた時間の合計 (ミリ秒単位) (track_io_timing が有効になっている場合。それ以外の場合は 0)Total time the statement spent reading blocks, in milliseconds (if track_io_timing is enabled, otherwise zero) | |
blk_write_timeblk_write_time | double precisiondouble precision | ステートメントによってブロックの書き込みに費やされた時間の合計 (ミリ秒単位) (track_io_timing が有効になっている場合。それ以外の場合は 0)Total time the statement spent writing blocks, in milliseconds (if track_io_timing is enabled, otherwise zero) |
query_store.query_texts_viewquery_store.query_texts_view
このビューでは、クエリ ストア内のクエリ テキスト データが返されます。This view returns query text data in Query Store. 個別の query_text ごとに 1 つの行があります。There is one row for each distinct query_text.
名前Name | TypeType | 説明Description |
---|---|---|
query_text_idquery_text_id | bigintbigint | query_texts テーブルの IDID for the query_texts table |
query_sql_textquery_sql_text | Varchar(10000)Varchar(10000) | 代表的なステートメントのテキスト。Text of a representative statement. 同じ構造を持つ複数の異なるクエリがまとめてクラスター化されます。このテキストは、クラスター内の最初のクエリのテキストです。Different queries with the same structure are clustered together; this text is the text for the first of the queries in the cluster. |
query_store.pgms_wait_sampling_viewquery_store.pgms_wait_sampling_view
このビューでは、クエリ ストア内の待機イベント データが返されます。This view returns wait events data in Query Store. 個別のデータベース ID、ユーザー ID、クエリ ID、イベントごとに 1 つの行があります。There is one row for each distinct database ID, user ID, query ID, and event.
名前Name | TypeType | 参照References | 説明Description |
---|---|---|---|
user_iduser_id | oidoid | pg_authid.oidpg_authid.oid | ステートメントを実行したユーザーの OIDOID of user who executed the statement |
db_iddb_id | oidoid | pg_database.oidpg_database.oid | ステートメントが実行されたデータベースの OIDOID of database in which the statement was executed |
query_idquery_id | bigintbigint | ステートメントの解析ツリーから計算される内部ハッシュ コードInternal hash code, computed from the statement's parse tree | |
event_typeevent_type | texttext | バックエンドによって待機されているイベントの種類The type of event for which the backend is waiting | |
イベントevent | texttext | バックエンドによって現在待機されている場合に、待機イベントの名前The wait event name if backend is currently waiting | |
callscalls | IntegerInteger | 同じイベントがキャプチャされた回数Number of the same event captured |
関数Functions
Query_store.qs_reset() returns voidQuery_store.qs_reset() returns void
qs_reset
では、クエリ ストアによってこれまでに収集されたすべての統計が破棄されます。qs_reset
discards all statistics gathered so far by Query Store. この関数は、サーバー管理者ロールによってのみ実行できます。This function can only be executed by the server admin role.
Query_store.staging_data_reset() returns voidQuery_store.staging_data_reset() returns void
staging_data_reset
では、クエリ ストアによってメモリ内で収集されたすべての統計 (つまり、データベースにまだフラッシュされていないメモリ内のデータ) が破棄されます。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.
Azure MonitorAzure Monitor
Azure Database for PostgreSQL は、Azure Monitor の診断設定に統合されています。Azure Database for PostgreSQL is integrated with Azure Monitor diagnostic settings. 診断設定を使用すると、ご自分の Postgres ログを、分析とアラート用の Azure Monitor ログ、ストリーミング用の Event Hubs、アーカイブ用の Azure Storage に JSON 形式で送信できます。Diagnostic settings allows you to send your Postgres logs in JSON format to Azure Monitor Logs for analytics and alerting, Event Hubs for streaming, and Azure Storage for archiving.
重要
この診断機能は、General Purpose 価格レベルとメモリ最適化価格レベルにのみあります。This diagnostic feature for is only available in the General Purpose and Memory Optimized pricing tiers.
診断設定を構成するConfigure diagnostic settings
お使いの Postgres サーバーの診断設定を有効にするには、Azure portal、CLI、REST API、PowerShell を使用します。You can enable diagnostic settings for your Postgres server using the Azure portal, CLI, REST API, and PowerShell. 構成するログ カテゴリは QueryStoreRuntimeStatistics と QueryStoreWaitStatistics です。The log categories to configure are QueryStoreRuntimeStatistics and QueryStoreWaitStatistics.
Azure portal を使用してリソース ログを有効にするにはTo enable resource logs using the Azure portal:
- ポータルで、お使いの Postgres サーバーのナビゲーション メニューから [診断設定] に移動します。In the portal, go to Diagnostic Settings in the navigation menu of your Postgres server.
- [診断設定を追加する] を選択します。Select Add Diagnostic Setting.
- この設定に名前を付けます。Name this setting.
- 任意の優先エンドポイント (ストレージ アカウント、イベント ハブ、ログ分析) を選択します。Select your preferred endpoint (storage account, event hub, log analytics).
- ログの種類として QueryStoreRuntimeStatistics と QueryStoreWaitStatistics を選択します。Select the log types QueryStoreRuntimeStatistics and QueryStoreWaitStatistics.
- 設定を保存します。Save your setting.
この設定を、PowerShell、CLI、または REST API を使用して有効にするには、診断の設定に関する記事をご覧ください。To enable this setting using PowerShell, CLI, or REST API, visit the diagnostic settings article.
JSON ログの形式JSON log format
次の表では、2 つのログの種類のフィールドについて説明します。The following tables describes the fields for the two log types. 選択した出力エンドポイントに応じて、含まれるフィールドとそれらが表示される順序が異なることがあります。Depending on the output endpoint you choose, the fields included and the order in which they appear may vary.
QueryStoreRuntimeStatisticsQueryStoreRuntimeStatistics
フィールドField | 説明Description |
---|---|
TimeGenerated [UTC]TimeGenerated [UTC] | ログが記録されたときのタイムスタンプ (UTC)Time stamp when the log was recorded in UTC |
ResourceIdResourceId | Postgres サーバーの Azure リソース URIPostgres server's Azure resource URI |
カテゴリCategory | QueryStoreRuntimeStatistics |
OperationNameOperationName | QueryStoreRuntimeStatisticsEvent |
LogicalServerName_sLogicalServerName_s | Postgres サーバー名Postgres server name |
runtime_stats_entry_id_sruntime_stats_entry_id_s | runtime_stats_entries テーブルからの IDID from the runtime_stats_entries table |
user_id_suser_id_s | ステートメントを実行したユーザーの OIDOID of user who executed the statement |
db_id_sdb_id_s | ステートメントが実行されたデータベースの OIDOID of database in which the statement was executed |
query_id_squery_id_s | ステートメントの解析ツリーから計算される内部ハッシュ コードInternal hash code, computed from the statement's parse tree |
end_time_send_time_s | このエントリのタイム バケットに対応する終了時刻End time corresponding to the time bucket for this entry |
calls_scalls_s | クエリの実行回数Number of times the query executed |
total_time_stotal_time_s | クエリの合計実行時間 (ミリ秒)Total query execution time, in milliseconds |
min_time_smin_time_s | クエリの最小実行時間 (ミリ秒)Minimum query execution time, in milliseconds |
max_time_smax_time_s | クエリの最大実行時間 (ミリ秒)Maximum query execution time, in milliseconds |
mean_time_smean_time_s | クエリの平均実行時間 (ミリ秒)Mean query execution time, in milliseconds |
ResourceGroupResourceGroup | リソース グループThe resource group |
SubscriptionIdSubscriptionId | サブスクリプション IDYour subscription ID |
ResourceProviderResourceProvider | Microsoft.DBForPostgreSQL |
リソースResource | Postgres サーバー名Postgres server name |
ResourceTypeResourceType | Servers |
QueryStoreWaitStatisticsQueryStoreWaitStatistics
フィールドField | 説明Description |
---|---|
TimeGenerated [UTC]TimeGenerated [UTC] | ログが記録されたときのタイムスタンプ (UTC)Time stamp when the log was recorded in UTC |
ResourceIdResourceId | Postgres サーバーの Azure リソース URIPostgres server's Azure resource URI |
カテゴリCategory | QueryStoreWaitStatistics |
OperationNameOperationName | QueryStoreWaitEvent |
user_id_suser_id_s | ステートメントを実行したユーザーの OIDOID of user who executed the statement |
db_id_sdb_id_s | ステートメントが実行されたデータベースの OIDOID of database in which the statement was executed |
query_id_squery_id_s | クエリの内部ハッシュ コードInternal hash code of the query |
calls_scalls_s | 同じイベントがキャプチャされた回数Number of the same event captured |
event_type_sevent_type_s | バックエンドによって待機されているイベントの種類The type of event for which the backend is waiting |
event_sevent_s | バックエンドによって現在待機されている場合に、待機イベントの名前The wait event name if the backend is currently waiting |
start_time_tstart_time_t | イベントの開始時刻Event start time |
end_time_send_time_s | イベントの終了時刻Event end time |
LogicalServerName_sLogicalServerName_s | Postgres サーバー名Postgres server name |
ResourceGroupResourceGroup | リソース グループThe resource group |
SubscriptionIdSubscriptionId | サブスクリプション IDYour subscription ID |
ResourceProviderResourceProvider | Microsoft.DBForPostgreSQL |
リソースResource | Postgres サーバー名Postgres server name |
ResourceTypeResourceType | Servers |
制限事項と既知の問題Limitations and known issues
- PostgreSQL サーバーのパラメーター default_transaction_read_only がオンの場合、クエリ ストアはデータをキャプチャできません。If a PostgreSQL server has the parameter default_transaction_read_only on, Query Store cannot capture data.
- 時間がかかる Unicode クエリ (> = 6000 バイト) が発生した場合は、クエリ ストア機能の実行が中断されることがあります。Query Store functionality can be interrupted if it encounters long Unicode queries (>= 6000 bytes).
- 読み取りレプリカには、プライマリ サーバーからクエリ ストア データがレプリケートされます。Read replicas replicate Query Store data from the primary server. つまり、読み取りレプリカのクエリ ストアでは、読み取りレプリカで実行されるクエリに関する統計情報は提供されません。This means that a read replica's Query Store does not provide statistics about queries run on the read replica.
次のステップNext steps
- 詳細については、クエリ ストアが特に役に立つシナリオに関するページをご覧ください。Learn more about scenarios where Query Store can be especially helpful.
- 詳細については、クエリ ストアの使用のベスト プラクティスに関するページをご覧ください。Learn more about best practices for using Query Store.