Skip to content

Commit 1ed132a

Browse files
committed
add /* pgwatch_generated */ to stat_plans query.
1 parent 3555544 commit 1ed132a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metric/metrics.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metrics:
88
init_sql: CREATE EXTENSION IF NOT EXISTS pg_stat_statements; CREATE EXTENSION IF NOT EXISTS pg_stat_plans;
99
sqls:
1010
16: |-
11-
WITH p_data AS (
11+
WITH /* pgwatch_generated */ p_data AS (
1212
SELECT
1313
max(p.dbid)::int8 as dbid,
1414
max(p.queryid)::int8 as queryid,
@@ -56,7 +56,7 @@ metrics:
5656
planid::int8,
5757
plan,
5858
calls::int8,
59-
total_plan_exec_time::int8,
59+
total_plan_exec_time::int8
6060
FROM
6161
(
6262
(

0 commit comments

Comments
 (0)