-
Global information
- Generated on Mon Oct 13 10:02:46 2025
- Log file: ././A3D-RND-REF/y=2025/m=10/d=12/h=00/m=00/PT1H.log, ..., ././A3D-RND-REF/y=2025/m=10/d=12/h=23/m=00/PT1H.log
- Parsed 41,161 log entries in 1m53s
- Log start from 2025-10-12 00:00:07 to 2025-10-12 23:59:42
-
Overview
Global Stats
- 11 Number of unique normalized queries
- 9,510 Number of queries
- 32s241ms Total query duration
- 2025-10-12 00:00:07 First query
- 2025-10-12 23:59:52 Last query
- 9 queries/s at 2025-10-12 00:25:58 Query peak
- 32s241ms Total query duration
- 15s378ms Prepare/parse total duration
- 14s50ms Bind total duration
- 2s812ms Execute total duration
- 0 Number of events
- 0 Number of unique normalized events
- 0 Max number of times the same event was reported
- 0 Number of cancellation
- 0 Total number of automatic vacuums
- 1 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 3,121 Total number of sessions
- 2 sessions at 2025-10-12 16:21:23 Session peak
- 17h8m8s Total duration of sessions
- 19s765ms Average duration of sessions
- 3 Average queries per session
- 10ms Average queries duration per session
- 19s755ms Average idle time per session
- 3,122 Total number of connections
- 2 connections/s at 2025-10-12 08:06:31 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 9 queries/s Query Peak
- 2025-10-12 00:25:58 Date
SELECT Traffic
Key values
- 5 queries/s Query Peak
- 2025-10-12 00:25:58 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2025-10-12 03:59:57 Date
Queries duration
Key values
- 32s241ms Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 12 00 396 0ms 3ms 0ms 2ms 3ms 6ms 01 396 0ms 5ms 0ms 2ms 4ms 6ms 02 396 0ms 3ms 0ms 3ms 3ms 6ms 03 398 0ms 2ms 0ms 3ms 3ms 5ms 04 396 0ms 3ms 0ms 3ms 4ms 5ms 05 396 0ms 2ms 0ms 3ms 3ms 5ms 06 396 0ms 3ms 0ms 3ms 3ms 5ms 07 397 0ms 2ms 0ms 3ms 4ms 5ms 08 396 0ms 7ms 0ms 3ms 4ms 10ms 09 396 0ms 2ms 0ms 3ms 3ms 6ms 10 396 0ms 2ms 0ms 3ms 3ms 5ms 11 396 0ms 2ms 0ms 3ms 3ms 5ms 12 396 0ms 3ms 0ms 3ms 4ms 4ms 13 396 0ms 2ms 0ms 3ms 3ms 4ms 14 396 0ms 2ms 0ms 3ms 3ms 4ms 15 396 0ms 2ms 0ms 3ms 3ms 4ms 16 398 0ms 3ms 0ms 3ms 4ms 4ms 17 396 0ms 2ms 0ms 3ms 4ms 4ms 18 396 0ms 2ms 0ms 3ms 3ms 5ms 19 396 0ms 2ms 0ms 3ms 3ms 4ms 20 397 0ms 11ms 0ms 3ms 4ms 13ms 21 396 0ms 6ms 0ms 3ms 4ms 7ms 22 396 0ms 2ms 0ms 3ms 3ms 4ms 23 396 0ms 2ms 0ms 3ms 3ms 4ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 12 00 140 0 0ms 1ms 1ms 1ms 01 140 0 0ms 1ms 1ms 3ms 02 140 0 0ms 1ms 1ms 1ms 03 141 0 0ms 1ms 1ms 1ms 04 140 0 0ms 1ms 1ms 2ms 05 140 0 0ms 1ms 1ms 1ms 06 140 0 0ms 1ms 1ms 2ms 07 140 0 0ms 1ms 1ms 1ms 08 140 0 0ms 1ms 1ms 3ms 09 140 0 0ms 1ms 1ms 1ms 10 140 0 0ms 1ms 1ms 1ms 11 140 0 0ms 1ms 1ms 1ms 12 140 0 0ms 1ms 1ms 2ms 13 140 0 0ms 1ms 1ms 2ms 14 140 0 0ms 1ms 1ms 2ms 15 140 0 0ms 1ms 1ms 1ms 16 141 0 0ms 1ms 1ms 1ms 17 140 0 0ms 1ms 1ms 1ms 18 140 0 0ms 1ms 1ms 2ms 19 140 0 0ms 1ms 1ms 1ms 20 140 0 0ms 1ms 1ms 1ms 21 140 0 0ms 1ms 1ms 2ms 22 140 0 0ms 1ms 1ms 2ms 23 140 0 0ms 1ms 1ms 2ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 12 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Oct 12 00 264 268 1.02 103.12% 01 264 268 1.02 103.12% 02 264 268 1.02 103.12% 03 266 270 1.02 103.10% 04 264 268 1.02 103.12% 05 264 268 1.02 103.12% 06 264 268 1.02 103.12% 07 264 268 1.02 103.12% 08 264 268 1.02 103.12% 09 264 268 1.02 103.12% 10 264 268 1.02 103.12% 11 264 268 1.02 103.12% 12 264 268 1.02 103.12% 13 264 268 1.02 103.12% 14 264 268 1.02 103.12% 15 264 268 1.02 103.12% 16 266 270 1.02 103.10% 17 264 268 1.02 103.12% 18 264 268 1.02 103.12% 19 264 268 1.02 103.12% 20 264 268 1.02 103.12% 21 264 268 1.02 103.12% 22 264 268 1.02 103.12% 23 264 268 1.02 103.12% Day Hour Count Average / Second Oct 12 00 130 0.04/s 01 130 0.04/s 02 130 0.04/s 03 131 0.04/s 04 130 0.04/s 05 130 0.04/s 06 130 0.04/s 07 130 0.04/s 08 130 0.04/s 09 130 0.04/s 10 130 0.04/s 11 130 0.04/s 12 130 0.04/s 13 130 0.04/s 14 130 0.04/s 15 130 0.04/s 16 131 0.04/s 17 130 0.04/s 18 130 0.04/s 19 130 0.04/s 20 130 0.04/s 21 130 0.04/s 22 130 0.04/s 23 130 0.04/s Day Hour Count Average Duration Average idle time Oct 12 00 130 19s760ms 19s759ms 01 130 19s760ms 19s760ms 02 130 19s762ms 19s761ms 03 130 19s762ms 19s761ms 04 130 19s762ms 19s761ms 05 130 19s764ms 19s763ms 06 130 19s763ms 19s762ms 07 130 19s761ms 19s760ms 08 130 19s794ms 19s793ms 09 130 19s762ms 19s762ms 10 130 19s764ms 19s763ms 11 130 19s761ms 19s760ms 12 131 19s767ms 19s766ms 13 130 19s763ms 19s762ms 14 130 19s761ms 19s761ms 15 130 19s762ms 19s761ms 16 130 19s769ms 19s768ms 17 130 19s768ms 19s767ms 18 130 19s781ms 19s780ms 19 130 19s764ms 19s763ms 20 130 19s767ms 19s766ms 21 130 19s765ms 19s764ms 22 130 19s761ms 19s761ms 23 130 19s761ms 19s760ms -
Connections
Established Connections
Key values
- 2 connections Connection Peak
- 2025-10-12 08:06:31 Date
Connections per database
Key values
- azure_sys Main Database
- 3,122 connections Total
Connections per user
Key values
- azuresu Main User
- 3,122 connections Total
-
Sessions
Simultaneous sessions
Key values
- 2 sessions Session Peak
- 2025-10-12 16:21:23 Date
Histogram of session times
Key values
- 3,073 1000-30000ms duration
Sessions per database
Key values
- azure_sys Main Database
- 3,121 sessions Total
Sessions per user
Key values
- azuresu Main User
- 3,121 sessions Total
Sessions per host
Key values
- 169.254.128.1 Main Host
- 3,121 sessions Total
-
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Oct 12 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Analyzes per table
Key values
- query_stats.pgms_stats_query_counts (1) Main table analyzed (database azure_sys)
- 1 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Oct 12 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 1 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 3,362 Total read queries
- 2,786 Total write queries
Queries by database
Key values
- azure_sys Main database
- 9,510 Requests
- 2s812ms (azure_sys)
- Main time consuming database
Queries by user
Key values
- azuresu Main user
- 9,510 Requests
User Request type Count Duration azuresu Total 9,510 2s812ms cte 2,786 1s907ms others 3,362 374ms select 3,362 530ms Duration by user
Key values
- 2s812ms (azuresu) Main time consuming user
User Request type Count Duration azuresu Total 9,510 2s812ms cte 2,786 1s907ms others 3,362 374ms select 3,362 530ms Queries by host
Key values
- 169.254.128.1 Main host
- 9,510 Requests
- 2s812ms (169.254.128.1)
- Main time consuming host
Queries by application
Key values
- [unknown] Main application
- 9,510 Requests
- 2s812ms ([unknown])
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-10-12 15:39:10 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 8,889 0-1ms duration
Slowest individual queries
Rank Duration Query 1 11ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 20:52:04 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
2 7ms SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;[ Date: 2025-10-12 08:16:20 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
3 6ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 21:16:53 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
4 5ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';[ Date: 2025-10-12 01:36:01 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
5 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 21:11:12 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
6 3ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;[ Date: 2025-10-12 00:25:58 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
7 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 12:23:58 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
8 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 20:05:33 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
9 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 04:08:13 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
10 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 02:53:47 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
11 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 16:09:51 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
12 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 20:24:09 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
13 3ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;[ Date: 2025-10-12 02:26:04 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
14 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 06:09:11 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
15 2ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 23:54:01 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
16 2ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 07:14:49 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
17 2ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 16:44:28 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
18 2ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';[ Date: 2025-10-12 17:32:34 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
19 2ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-10-12 18:15:58 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
20 2ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;[ Date: 2025-10-12 10:26:48 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 1s907ms 2,786 0ms 11ms 0ms with slots_info as ( select slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end as wal_retention_from_restart_lsn, stat.replay_lsn, case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end as replay_lsn_else_restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name ( case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end) end as must_retain_wal_file, case when pg_is_in_recovery() then null else ( case when stat.replay_lsn is null then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end) end as wal_retention_from_replay_lsn from pg_catalog.pg_replication_slots slot left join pg_catalog.pg_stat_replication stat on slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( select * from slots_info where slot_type = ? and slot_name like ? or slot_name like ? ), read_replica_slot_info as ( select * from slots_info where slot_type = ? and slot_name not like ? and slot_name not like ? ) select ( select row_to_json(t1) logical_slots from ( select ( select count(*) as active from slots_info where slot_type = ? and active = true), ( select count(*) as inactive from slots_info where slot_type = ? and active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from slots_info where slot_type = ? order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( select row_to_json(t1) read_replica_slots from ( select ( select count(*) as active from read_replica_slot_info where active = true), ( select count(*) as inactive from read_replica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from read_replica_slot_info order by replay_lsn_else_restart_lsn limit ?) as t) as lagging_order) as t1), ( select row_to_json(t1) standby_and_walreplica_slots from ( select ( select count(*) as active from standby_and_walreplica_slot_info where active = true), ( select count(*) as inactive from standby_and_walreplica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( select row_to_json(t)::text as checkpoint_info from ( select ( select trunc(max(extract(epoch from current_timestamp - xact_start))) as max_age from pg_stat_activity) oldest_live_tx_age, trunc(extract(epoch from current_timestamp - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, to_char(checkpoint_time at time zone ?, ?) as checkpoint_time, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (checkpoint_lsn) end as checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( select cast(current_setting(?) as integer) as block_size) as sub_query) as t), ( select row_to_json(t)::text as archiver_info from ( select trunc(extract(epoch from current_timestamp - last_archived_time)) last_archival, (last_failed_wal is null or last_failed_wal <= last_archived_wal) is_archiving, trunc( case when archived_count = ? or extract(epoch from age(now(), stats_reset)) = ? then ? else cast(archived_count as numeric) * ? / extract(epoch from age(now(), stats_reset)) end) wals_archived_per_minute, last_archived_wal, to_char(last_archived_time at time zone ?, ?) as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( select row_to_json(t)::text as wal_upload_related_details from ( select ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) end as current), ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (flush_lsn) end as quorum_committed from slots_info where slot_type = ? and sync_state = ? order by flush_lsn desc limit ?), ( select cast(pg_catalog.current_setting(?) as boolean) as enforce_ha_quorom), ( select pg_catalog.current_setting(?) as synchronous_standby_names), ( select cast(pg_catalog.pg_is_in_recovery() as boolean) as pg_is_in_recovery)) as t), ( select to_char(pg_catalog.now() at time zone ?, ?)) as time_fetched;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 12 02 116 74ms 0ms 03 116 70ms 0ms 04 116 77ms 0ms 05 117 80ms 0ms 06 116 79ms 0ms 07 116 72ms 0ms 08 116 78ms 0ms 09 116 87ms 0ms 10 116 73ms 0ms 11 116 80ms 0ms 12 116 83ms 0ms 13 116 83ms 0ms 14 116 77ms 0ms 15 116 73ms 0ms 16 116 81ms 0ms 17 116 76ms 0ms 18 117 82ms 0ms 19 116 73ms 0ms 20 116 80ms 0ms 21 116 84ms 0ms 22 116 89ms 0ms 23 116 91ms 0ms 00 116 77ms 0ms 01 116 77ms 0ms [ User: azuresu - Total duration: 1s907ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s907ms - Times executed: 2786 ]
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 20:52:04 Duration: 11ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 21:16:53 Duration: 6ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 21:11:12 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 374ms 288 1ms 5ms 1ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 12 02 12 14ms 1ms 03 12 19ms 1ms 04 12 15ms 1ms 05 12 15ms 1ms 06 12 15ms 1ms 07 12 15ms 1ms 08 12 15ms 1ms 09 12 14ms 1ms 10 12 15ms 1ms 11 12 15ms 1ms 12 12 15ms 1ms 13 12 16ms 1ms 14 12 15ms 1ms 15 12 14ms 1ms 16 12 18ms 1ms 17 12 15ms 1ms 18 12 14ms 1ms 19 12 16ms 1ms 20 12 16ms 1ms 21 12 14ms 1ms 22 12 14ms 1ms 23 12 15ms 1ms 00 12 15ms 1ms 01 12 14ms 1ms [ User: azuresu - Total duration: 374ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 374ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 01:36:01 Duration: 5ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 17:32:34 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 14:32:20 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 331ms 2,978 0ms 0ms 0ms discard all;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 12 02 124 13ms 0ms 03 124 13ms 0ms 04 124 13ms 0ms 05 124 13ms 0ms 06 124 14ms 0ms 07 124 13ms 0ms 08 124 13ms 0ms 09 125 14ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 124 13ms 0ms 13 124 13ms 0ms 14 124 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 14ms 0ms 19 124 14ms 0ms 20 124 13ms 0ms 21 124 13ms 0ms 22 125 13ms 0ms 23 124 14ms 0ms 00 124 14ms 0ms 01 124 14ms 0ms [ User: azuresu - Total duration: 331ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 331ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-10-12 16:52:55 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-10-12 23:54:42 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-10-12 22:39:14 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
4 59ms 48 0ms 2ms 1ms select schemaname, sum(n_live_tup) as n_live_tup, sum(n_dead_tup) as n_dead_tup, sum(seq_scan) as seq_scan, sum(seq_tup_read) as seq_tup_read, sum(idx_scan) as idx_scan, sum(idx_tup_fetch) as idx_tup_fetch, sum(n_tup_ins) as n_tup_ins, sum(n_tup_upd) as n_tup_upd, sum(n_tup_del) as n_tup_del, sum(n_tup_hot_upd) as n_tup_hot_upd, sum(n_mod_since_analyze) as n_mod_since_analyze, sum(vacuum_count) as vacuum_count, sum(autovacuum_count) as autovacuum_count, sum(analyze_count) as analyze_count, sum(autoanalyze_count) as autoanalyze_count, count(relid) as tables_counter, sum( case when last_vacuum is not null then ? else ? end)::bigint as tables_vacuumed, sum( case when last_autovacuum is not null then ? else ? end)::bigint as tables_autovacuumed, sum( case when last_analyze is not null then ? else ? end)::bigint as tables_analyzed, sum( case when last_autoanalyze is not null then ? else ? end)::bigint as tables_autoanalyzed from pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 12 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 4ms 2ms 07 2 2ms 1ms 08 2 2ms 1ms 09 2 2ms 1ms 10 2 2ms 1ms 11 2 2ms 1ms 12 2 2ms 1ms 13 2 2ms 1ms 14 2 2ms 1ms 15 2 2ms 1ms 16 2 2ms 1ms 17 2 2ms 1ms 18 2 2ms 1ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 2ms 1ms 00 2 3ms 1ms 01 2 2ms 1ms [ User: azuresu - Total duration: 59ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 59ms - Times executed: 48 ]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 04:37:22 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 22:08:25 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 04:07:21 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 44ms 2,786 0ms 7ms 0ms select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) end as pg_walfile_name;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 12 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 117 1ms 0ms 06 116 1ms 0ms 07 116 2ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 116 9ms 0ms 11 116 2ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 117 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 2ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 1ms 0ms 01 116 1ms 0ms [ User: azuresu - Total duration: 44ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 44ms - Times executed: 2786 ]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 08:16:20 Duration: 7ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 19:40:13 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 05:55:44 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 43ms 24 0ms 3ms 1ms select start_time, end_time, querycount from query_stats.pgms_stats_query_counts where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 12 02 1 3ms 3ms 03 1 2ms 2ms 04 1 3ms 3ms 05 1 2ms 2ms 06 1 2ms 2ms 07 1 2ms 2ms 08 1 2ms 2ms 09 1 2ms 2ms 10 1 2ms 2ms 11 1 2ms 2ms 12 1 2ms 2ms 13 1 2ms 2ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 1ms 1ms 21 1 0ms 0ms 22 1 1ms 1ms 23 1 1ms 1ms 00 1 0ms 0ms 01 1 0ms 0ms [ User: azuresu - Total duration: 43ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 43ms - Times executed: 24 ]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 00:25:58 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 02:26:04 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 10:26:48 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
7 32ms 96 0ms 0ms 0ms set session authorization default; reset all; close "..." *; select pg_advisory_unlock_all(); discard sequences; discard temp;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 12 02 4 1ms 0ms 03 4 1ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 1ms 0ms 08 4 1ms 0ms 09 4 1ms 0ms 10 4 1ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms 00 4 1ms 0ms 01 4 1ms 0ms [ User: azuresu - Total duration: 32ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 32ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 05:41:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 07:41:38 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 03:41:19 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
8 9ms 288 0ms 0ms 0ms set session statement_timeout to ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 12 02 12 0ms 0ms 03 12 0ms 0ms 04 12 0ms 0ms 05 12 0ms 0ms 06 12 0ms 0ms 07 12 0ms 0ms 08 12 0ms 0ms 09 12 0ms 0ms 10 12 0ms 0ms 11 12 0ms 0ms 12 12 0ms 0ms 13 12 0ms 0ms 14 12 0ms 0ms 15 12 0ms 0ms 16 12 0ms 0ms 17 12 0ms 0ms 18 12 0ms 0ms 19 12 0ms 0ms 20 12 0ms 0ms 21 12 0ms 0ms 22 12 0ms 0ms 23 12 0ms 0ms 00 12 0ms 0ms 01 12 0ms 0ms [ User: azuresu - Total duration: 9ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 9ms - Times executed: 288 ]
-
set session statement_timeout to 60000;
Date: 2025-10-12 06:37:30 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-10-12 05:41:21 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-10-12 08:56:36 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 3ms 96 0ms 0ms 0ms select runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, ?) as search_path, parameters_capture_status, search_path_capture_status from query_store.qs_view as qsv where qsv.end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 12 02 4 0ms 0ms 03 4 0ms 0ms 04 4 0ms 0ms 05 4 0ms 0ms 06 4 0ms 0ms 07 4 0ms 0ms 08 4 0ms 0ms 09 4 0ms 0ms 10 4 0ms 0ms 11 4 0ms 0ms 12 4 0ms 0ms 13 4 0ms 0ms 14 4 0ms 0ms 15 4 0ms 0ms 16 4 0ms 0ms 17 4 0ms 0ms 18 4 0ms 0ms 19 4 0ms 0ms 20 4 0ms 0ms 21 4 0ms 0ms 22 4 0ms 0ms 23 4 0ms 0ms 00 4 0ms 0ms 01 4 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 96 ]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 12:27:04 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 05:11:17 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 14:12:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 2ms 24 0ms 0ms 0ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 12 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms 01 1 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 06:07:28 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 13:07:52 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 07:07:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 2ms 96 0ms 0ms 0ms select start_time, end_time, user_id, db_id, query_id, event_type, event, calls from query_store.pgms_wait_sampling_view where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 12 02 4 0ms 0ms 03 4 0ms 0ms 04 4 0ms 0ms 05 4 0ms 0ms 06 4 0ms 0ms 07 4 0ms 0ms 08 4 0ms 0ms 09 4 0ms 0ms 10 4 0ms 0ms 11 4 0ms 0ms 12 4 0ms 0ms 13 4 0ms 0ms 14 4 0ms 0ms 15 4 0ms 0ms 16 4 0ms 0ms 17 4 0ms 0ms 18 4 0ms 0ms 19 4 0ms 0ms 20 4 0ms 0ms 21 4 0ms 0ms 22 4 0ms 0ms 23 4 0ms 0ms 00 4 0ms 0ms 01 4 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 01:11:01 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 19:57:46 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 01:56:03 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 2,978 331ms 0ms 0ms 0ms discard all;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 12 02 124 13ms 0ms 03 124 13ms 0ms 04 124 13ms 0ms 05 124 13ms 0ms 06 124 14ms 0ms 07 124 13ms 0ms 08 124 13ms 0ms 09 125 14ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 124 13ms 0ms 13 124 13ms 0ms 14 124 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 14ms 0ms 19 124 14ms 0ms 20 124 13ms 0ms 21 124 13ms 0ms 22 125 13ms 0ms 23 124 14ms 0ms 00 124 14ms 0ms 01 124 14ms 0ms [ User: azuresu - Total duration: 331ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 331ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-10-12 16:52:55 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-10-12 23:54:42 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-10-12 22:39:14 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
2 2,786 1s907ms 0ms 11ms 0ms with slots_info as ( select slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end as wal_retention_from_restart_lsn, stat.replay_lsn, case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end as replay_lsn_else_restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name ( case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end) end as must_retain_wal_file, case when pg_is_in_recovery() then null else ( case when stat.replay_lsn is null then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end) end as wal_retention_from_replay_lsn from pg_catalog.pg_replication_slots slot left join pg_catalog.pg_stat_replication stat on slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( select * from slots_info where slot_type = ? and slot_name like ? or slot_name like ? ), read_replica_slot_info as ( select * from slots_info where slot_type = ? and slot_name not like ? and slot_name not like ? ) select ( select row_to_json(t1) logical_slots from ( select ( select count(*) as active from slots_info where slot_type = ? and active = true), ( select count(*) as inactive from slots_info where slot_type = ? and active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from slots_info where slot_type = ? order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( select row_to_json(t1) read_replica_slots from ( select ( select count(*) as active from read_replica_slot_info where active = true), ( select count(*) as inactive from read_replica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from read_replica_slot_info order by replay_lsn_else_restart_lsn limit ?) as t) as lagging_order) as t1), ( select row_to_json(t1) standby_and_walreplica_slots from ( select ( select count(*) as active from standby_and_walreplica_slot_info where active = true), ( select count(*) as inactive from standby_and_walreplica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( select row_to_json(t)::text as checkpoint_info from ( select ( select trunc(max(extract(epoch from current_timestamp - xact_start))) as max_age from pg_stat_activity) oldest_live_tx_age, trunc(extract(epoch from current_timestamp - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, to_char(checkpoint_time at time zone ?, ?) as checkpoint_time, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (checkpoint_lsn) end as checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( select cast(current_setting(?) as integer) as block_size) as sub_query) as t), ( select row_to_json(t)::text as archiver_info from ( select trunc(extract(epoch from current_timestamp - last_archived_time)) last_archival, (last_failed_wal is null or last_failed_wal <= last_archived_wal) is_archiving, trunc( case when archived_count = ? or extract(epoch from age(now(), stats_reset)) = ? then ? else cast(archived_count as numeric) * ? / extract(epoch from age(now(), stats_reset)) end) wals_archived_per_minute, last_archived_wal, to_char(last_archived_time at time zone ?, ?) as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( select row_to_json(t)::text as wal_upload_related_details from ( select ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) end as current), ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (flush_lsn) end as quorum_committed from slots_info where slot_type = ? and sync_state = ? order by flush_lsn desc limit ?), ( select cast(pg_catalog.current_setting(?) as boolean) as enforce_ha_quorom), ( select pg_catalog.current_setting(?) as synchronous_standby_names), ( select cast(pg_catalog.pg_is_in_recovery() as boolean) as pg_is_in_recovery)) as t), ( select to_char(pg_catalog.now() at time zone ?, ?)) as time_fetched;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 12 02 116 74ms 0ms 03 116 70ms 0ms 04 116 77ms 0ms 05 117 80ms 0ms 06 116 79ms 0ms 07 116 72ms 0ms 08 116 78ms 0ms 09 116 87ms 0ms 10 116 73ms 0ms 11 116 80ms 0ms 12 116 83ms 0ms 13 116 83ms 0ms 14 116 77ms 0ms 15 116 73ms 0ms 16 116 81ms 0ms 17 116 76ms 0ms 18 117 82ms 0ms 19 116 73ms 0ms 20 116 80ms 0ms 21 116 84ms 0ms 22 116 89ms 0ms 23 116 91ms 0ms 00 116 77ms 0ms 01 116 77ms 0ms [ User: azuresu - Total duration: 1s907ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s907ms - Times executed: 2786 ]
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 20:52:04 Duration: 11ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 21:16:53 Duration: 6ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 21:11:12 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 2,786 44ms 0ms 7ms 0ms select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) end as pg_walfile_name;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 12 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 117 1ms 0ms 06 116 1ms 0ms 07 116 2ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 116 9ms 0ms 11 116 2ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 117 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 2ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 1ms 0ms 01 116 1ms 0ms [ User: azuresu - Total duration: 44ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 44ms - Times executed: 2786 ]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 08:16:20 Duration: 7ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 19:40:13 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 05:55:44 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
4 288 374ms 1ms 5ms 1ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 12 02 12 14ms 1ms 03 12 19ms 1ms 04 12 15ms 1ms 05 12 15ms 1ms 06 12 15ms 1ms 07 12 15ms 1ms 08 12 15ms 1ms 09 12 14ms 1ms 10 12 15ms 1ms 11 12 15ms 1ms 12 12 15ms 1ms 13 12 16ms 1ms 14 12 15ms 1ms 15 12 14ms 1ms 16 12 18ms 1ms 17 12 15ms 1ms 18 12 14ms 1ms 19 12 16ms 1ms 20 12 16ms 1ms 21 12 14ms 1ms 22 12 14ms 1ms 23 12 15ms 1ms 00 12 15ms 1ms 01 12 14ms 1ms [ User: azuresu - Total duration: 374ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 374ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 01:36:01 Duration: 5ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 17:32:34 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 14:32:20 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 288 9ms 0ms 0ms 0ms set session statement_timeout to ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 12 02 12 0ms 0ms 03 12 0ms 0ms 04 12 0ms 0ms 05 12 0ms 0ms 06 12 0ms 0ms 07 12 0ms 0ms 08 12 0ms 0ms 09 12 0ms 0ms 10 12 0ms 0ms 11 12 0ms 0ms 12 12 0ms 0ms 13 12 0ms 0ms 14 12 0ms 0ms 15 12 0ms 0ms 16 12 0ms 0ms 17 12 0ms 0ms 18 12 0ms 0ms 19 12 0ms 0ms 20 12 0ms 0ms 21 12 0ms 0ms 22 12 0ms 0ms 23 12 0ms 0ms 00 12 0ms 0ms 01 12 0ms 0ms [ User: azuresu - Total duration: 9ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 9ms - Times executed: 288 ]
-
set session statement_timeout to 60000;
Date: 2025-10-12 06:37:30 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-10-12 05:41:21 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-10-12 08:56:36 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 96 32ms 0ms 0ms 0ms set session authorization default; reset all; close "..." *; select pg_advisory_unlock_all(); discard sequences; discard temp;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 12 02 4 1ms 0ms 03 4 1ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 1ms 0ms 08 4 1ms 0ms 09 4 1ms 0ms 10 4 1ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms 00 4 1ms 0ms 01 4 1ms 0ms [ User: azuresu - Total duration: 32ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 32ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 05:41:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 07:41:38 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 03:41:19 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
7 96 3ms 0ms 0ms 0ms select runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, ?) as search_path, parameters_capture_status, search_path_capture_status from query_store.qs_view as qsv where qsv.end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 12 02 4 0ms 0ms 03 4 0ms 0ms 04 4 0ms 0ms 05 4 0ms 0ms 06 4 0ms 0ms 07 4 0ms 0ms 08 4 0ms 0ms 09 4 0ms 0ms 10 4 0ms 0ms 11 4 0ms 0ms 12 4 0ms 0ms 13 4 0ms 0ms 14 4 0ms 0ms 15 4 0ms 0ms 16 4 0ms 0ms 17 4 0ms 0ms 18 4 0ms 0ms 19 4 0ms 0ms 20 4 0ms 0ms 21 4 0ms 0ms 22 4 0ms 0ms 23 4 0ms 0ms 00 4 0ms 0ms 01 4 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 96 ]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 12:27:04 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 05:11:17 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 14:12:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
8 96 2ms 0ms 0ms 0ms select start_time, end_time, user_id, db_id, query_id, event_type, event, calls from query_store.pgms_wait_sampling_view where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 12 02 4 0ms 0ms 03 4 0ms 0ms 04 4 0ms 0ms 05 4 0ms 0ms 06 4 0ms 0ms 07 4 0ms 0ms 08 4 0ms 0ms 09 4 0ms 0ms 10 4 0ms 0ms 11 4 0ms 0ms 12 4 0ms 0ms 13 4 0ms 0ms 14 4 0ms 0ms 15 4 0ms 0ms 16 4 0ms 0ms 17 4 0ms 0ms 18 4 0ms 0ms 19 4 0ms 0ms 20 4 0ms 0ms 21 4 0ms 0ms 22 4 0ms 0ms 23 4 0ms 0ms 00 4 0ms 0ms 01 4 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 01:11:01 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 19:57:46 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 01:56:03 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 48 59ms 0ms 2ms 1ms select schemaname, sum(n_live_tup) as n_live_tup, sum(n_dead_tup) as n_dead_tup, sum(seq_scan) as seq_scan, sum(seq_tup_read) as seq_tup_read, sum(idx_scan) as idx_scan, sum(idx_tup_fetch) as idx_tup_fetch, sum(n_tup_ins) as n_tup_ins, sum(n_tup_upd) as n_tup_upd, sum(n_tup_del) as n_tup_del, sum(n_tup_hot_upd) as n_tup_hot_upd, sum(n_mod_since_analyze) as n_mod_since_analyze, sum(vacuum_count) as vacuum_count, sum(autovacuum_count) as autovacuum_count, sum(analyze_count) as analyze_count, sum(autoanalyze_count) as autoanalyze_count, count(relid) as tables_counter, sum( case when last_vacuum is not null then ? else ? end)::bigint as tables_vacuumed, sum( case when last_autovacuum is not null then ? else ? end)::bigint as tables_autovacuumed, sum( case when last_analyze is not null then ? else ? end)::bigint as tables_analyzed, sum( case when last_autoanalyze is not null then ? else ? end)::bigint as tables_autoanalyzed from pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 12 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 4ms 2ms 07 2 2ms 1ms 08 2 2ms 1ms 09 2 2ms 1ms 10 2 2ms 1ms 11 2 2ms 1ms 12 2 2ms 1ms 13 2 2ms 1ms 14 2 2ms 1ms 15 2 2ms 1ms 16 2 2ms 1ms 17 2 2ms 1ms 18 2 2ms 1ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 2ms 1ms 00 2 3ms 1ms 01 2 2ms 1ms [ User: azuresu - Total duration: 59ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 59ms - Times executed: 48 ]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 04:37:22 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 22:08:25 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 04:07:21 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 24 43ms 0ms 3ms 1ms select start_time, end_time, querycount from query_stats.pgms_stats_query_counts where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 12 02 1 3ms 3ms 03 1 2ms 2ms 04 1 3ms 3ms 05 1 2ms 2ms 06 1 2ms 2ms 07 1 2ms 2ms 08 1 2ms 2ms 09 1 2ms 2ms 10 1 2ms 2ms 11 1 2ms 2ms 12 1 2ms 2ms 13 1 2ms 2ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 1ms 1ms 21 1 0ms 0ms 22 1 1ms 1ms 23 1 1ms 1ms 00 1 0ms 0ms 01 1 0ms 0ms [ User: azuresu - Total duration: 43ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 43ms - Times executed: 24 ]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 00:25:58 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 02:26:04 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 10:26:48 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 24 2ms 0ms 0ms 0ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 12 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms 01 1 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 06:07:28 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 13:07:52 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 07:07:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 0ms 3ms 1ms 24 43ms select start_time, end_time, querycount from query_stats.pgms_stats_query_counts where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 12 02 1 3ms 3ms 03 1 2ms 2ms 04 1 3ms 3ms 05 1 2ms 2ms 06 1 2ms 2ms 07 1 2ms 2ms 08 1 2ms 2ms 09 1 2ms 2ms 10 1 2ms 2ms 11 1 2ms 2ms 12 1 2ms 2ms 13 1 2ms 2ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 1ms 1ms 21 1 0ms 0ms 22 1 1ms 1ms 23 1 1ms 1ms 00 1 0ms 0ms 01 1 0ms 0ms [ User: azuresu - Total duration: 43ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 43ms - Times executed: 24 ]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 00:25:58 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 02:26:04 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 10:26:48 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 1ms 5ms 1ms 288 374ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 12 02 12 14ms 1ms 03 12 19ms 1ms 04 12 15ms 1ms 05 12 15ms 1ms 06 12 15ms 1ms 07 12 15ms 1ms 08 12 15ms 1ms 09 12 14ms 1ms 10 12 15ms 1ms 11 12 15ms 1ms 12 12 15ms 1ms 13 12 16ms 1ms 14 12 15ms 1ms 15 12 14ms 1ms 16 12 18ms 1ms 17 12 15ms 1ms 18 12 14ms 1ms 19 12 16ms 1ms 20 12 16ms 1ms 21 12 14ms 1ms 22 12 14ms 1ms 23 12 15ms 1ms 00 12 15ms 1ms 01 12 14ms 1ms [ User: azuresu - Total duration: 374ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 374ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 01:36:01 Duration: 5ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 17:32:34 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 14:32:20 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 0ms 2ms 1ms 48 59ms select schemaname, sum(n_live_tup) as n_live_tup, sum(n_dead_tup) as n_dead_tup, sum(seq_scan) as seq_scan, sum(seq_tup_read) as seq_tup_read, sum(idx_scan) as idx_scan, sum(idx_tup_fetch) as idx_tup_fetch, sum(n_tup_ins) as n_tup_ins, sum(n_tup_upd) as n_tup_upd, sum(n_tup_del) as n_tup_del, sum(n_tup_hot_upd) as n_tup_hot_upd, sum(n_mod_since_analyze) as n_mod_since_analyze, sum(vacuum_count) as vacuum_count, sum(autovacuum_count) as autovacuum_count, sum(analyze_count) as analyze_count, sum(autoanalyze_count) as autoanalyze_count, count(relid) as tables_counter, sum( case when last_vacuum is not null then ? else ? end)::bigint as tables_vacuumed, sum( case when last_autovacuum is not null then ? else ? end)::bigint as tables_autovacuumed, sum( case when last_analyze is not null then ? else ? end)::bigint as tables_analyzed, sum( case when last_autoanalyze is not null then ? else ? end)::bigint as tables_autoanalyzed from pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 12 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 4ms 2ms 07 2 2ms 1ms 08 2 2ms 1ms 09 2 2ms 1ms 10 2 2ms 1ms 11 2 2ms 1ms 12 2 2ms 1ms 13 2 2ms 1ms 14 2 2ms 1ms 15 2 2ms 1ms 16 2 2ms 1ms 17 2 2ms 1ms 18 2 2ms 1ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 2ms 1ms 00 2 3ms 1ms 01 2 2ms 1ms [ User: azuresu - Total duration: 59ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 59ms - Times executed: 48 ]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 04:37:22 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 22:08:25 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 04:07:21 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
4 0ms 11ms 0ms 2,786 1s907ms with slots_info as ( select slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end as wal_retention_from_restart_lsn, stat.replay_lsn, case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end as replay_lsn_else_restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name ( case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end) end as must_retain_wal_file, case when pg_is_in_recovery() then null else ( case when stat.replay_lsn is null then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end) end as wal_retention_from_replay_lsn from pg_catalog.pg_replication_slots slot left join pg_catalog.pg_stat_replication stat on slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( select * from slots_info where slot_type = ? and slot_name like ? or slot_name like ? ), read_replica_slot_info as ( select * from slots_info where slot_type = ? and slot_name not like ? and slot_name not like ? ) select ( select row_to_json(t1) logical_slots from ( select ( select count(*) as active from slots_info where slot_type = ? and active = true), ( select count(*) as inactive from slots_info where slot_type = ? and active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from slots_info where slot_type = ? order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( select row_to_json(t1) read_replica_slots from ( select ( select count(*) as active from read_replica_slot_info where active = true), ( select count(*) as inactive from read_replica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from read_replica_slot_info order by replay_lsn_else_restart_lsn limit ?) as t) as lagging_order) as t1), ( select row_to_json(t1) standby_and_walreplica_slots from ( select ( select count(*) as active from standby_and_walreplica_slot_info where active = true), ( select count(*) as inactive from standby_and_walreplica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( select row_to_json(t)::text as checkpoint_info from ( select ( select trunc(max(extract(epoch from current_timestamp - xact_start))) as max_age from pg_stat_activity) oldest_live_tx_age, trunc(extract(epoch from current_timestamp - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, to_char(checkpoint_time at time zone ?, ?) as checkpoint_time, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (checkpoint_lsn) end as checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( select cast(current_setting(?) as integer) as block_size) as sub_query) as t), ( select row_to_json(t)::text as archiver_info from ( select trunc(extract(epoch from current_timestamp - last_archived_time)) last_archival, (last_failed_wal is null or last_failed_wal <= last_archived_wal) is_archiving, trunc( case when archived_count = ? or extract(epoch from age(now(), stats_reset)) = ? then ? else cast(archived_count as numeric) * ? / extract(epoch from age(now(), stats_reset)) end) wals_archived_per_minute, last_archived_wal, to_char(last_archived_time at time zone ?, ?) as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( select row_to_json(t)::text as wal_upload_related_details from ( select ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) end as current), ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (flush_lsn) end as quorum_committed from slots_info where slot_type = ? and sync_state = ? order by flush_lsn desc limit ?), ( select cast(pg_catalog.current_setting(?) as boolean) as enforce_ha_quorom), ( select pg_catalog.current_setting(?) as synchronous_standby_names), ( select cast(pg_catalog.pg_is_in_recovery() as boolean) as pg_is_in_recovery)) as t), ( select to_char(pg_catalog.now() at time zone ?, ?)) as time_fetched;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 12 02 116 74ms 0ms 03 116 70ms 0ms 04 116 77ms 0ms 05 117 80ms 0ms 06 116 79ms 0ms 07 116 72ms 0ms 08 116 78ms 0ms 09 116 87ms 0ms 10 116 73ms 0ms 11 116 80ms 0ms 12 116 83ms 0ms 13 116 83ms 0ms 14 116 77ms 0ms 15 116 73ms 0ms 16 116 81ms 0ms 17 116 76ms 0ms 18 117 82ms 0ms 19 116 73ms 0ms 20 116 80ms 0ms 21 116 84ms 0ms 22 116 89ms 0ms 23 116 91ms 0ms 00 116 77ms 0ms 01 116 77ms 0ms [ User: azuresu - Total duration: 1s907ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s907ms - Times executed: 2786 ]
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 20:52:04 Duration: 11ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 21:16:53 Duration: 6ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-10-12 21:11:12 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 0ms 0ms 0ms 96 32ms set session authorization default; reset all; close "..." *; select pg_advisory_unlock_all(); discard sequences; discard temp;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 12 02 4 1ms 0ms 03 4 1ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 1ms 0ms 08 4 1ms 0ms 09 4 1ms 0ms 10 4 1ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms 00 4 1ms 0ms 01 4 1ms 0ms [ User: azuresu - Total duration: 32ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 32ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 05:41:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 07:41:38 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-10-12 03:41:19 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
6 0ms 0ms 0ms 24 2ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 12 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms 01 1 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 06:07:28 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 13:07:52 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 07:07:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
7 0ms 0ms 0ms 2,978 331ms discard all;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 12 02 124 13ms 0ms 03 124 13ms 0ms 04 124 13ms 0ms 05 124 13ms 0ms 06 124 14ms 0ms 07 124 13ms 0ms 08 124 13ms 0ms 09 125 14ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 124 13ms 0ms 13 124 13ms 0ms 14 124 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 14ms 0ms 19 124 14ms 0ms 20 124 13ms 0ms 21 124 13ms 0ms 22 125 13ms 0ms 23 124 14ms 0ms 00 124 14ms 0ms 01 124 14ms 0ms [ User: azuresu - Total duration: 331ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 331ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-10-12 16:52:55 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-10-12 23:54:42 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-10-12 22:39:14 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
8 0ms 0ms 0ms 288 9ms set session statement_timeout to ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 12 02 12 0ms 0ms 03 12 0ms 0ms 04 12 0ms 0ms 05 12 0ms 0ms 06 12 0ms 0ms 07 12 0ms 0ms 08 12 0ms 0ms 09 12 0ms 0ms 10 12 0ms 0ms 11 12 0ms 0ms 12 12 0ms 0ms 13 12 0ms 0ms 14 12 0ms 0ms 15 12 0ms 0ms 16 12 0ms 0ms 17 12 0ms 0ms 18 12 0ms 0ms 19 12 0ms 0ms 20 12 0ms 0ms 21 12 0ms 0ms 22 12 0ms 0ms 23 12 0ms 0ms 00 12 0ms 0ms 01 12 0ms 0ms [ User: azuresu - Total duration: 9ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 9ms - Times executed: 288 ]
-
set session statement_timeout to 60000;
Date: 2025-10-12 06:37:30 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-10-12 05:41:21 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-10-12 08:56:36 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 0ms 0ms 0ms 96 3ms select runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, ?) as search_path, parameters_capture_status, search_path_capture_status from query_store.qs_view as qsv where qsv.end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 12 02 4 0ms 0ms 03 4 0ms 0ms 04 4 0ms 0ms 05 4 0ms 0ms 06 4 0ms 0ms 07 4 0ms 0ms 08 4 0ms 0ms 09 4 0ms 0ms 10 4 0ms 0ms 11 4 0ms 0ms 12 4 0ms 0ms 13 4 0ms 0ms 14 4 0ms 0ms 15 4 0ms 0ms 16 4 0ms 0ms 17 4 0ms 0ms 18 4 0ms 0ms 19 4 0ms 0ms 20 4 0ms 0ms 21 4 0ms 0ms 22 4 0ms 0ms 23 4 0ms 0ms 00 4 0ms 0ms 01 4 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 96 ]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 12:27:04 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 05:11:17 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 14:12:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 0ms 0ms 0ms 96 2ms select start_time, end_time, user_id, db_id, query_id, event_type, event, calls from query_store.pgms_wait_sampling_view where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 12 02 4 0ms 0ms 03 4 0ms 0ms 04 4 0ms 0ms 05 4 0ms 0ms 06 4 0ms 0ms 07 4 0ms 0ms 08 4 0ms 0ms 09 4 0ms 0ms 10 4 0ms 0ms 11 4 0ms 0ms 12 4 0ms 0ms 13 4 0ms 0ms 14 4 0ms 0ms 15 4 0ms 0ms 16 4 0ms 0ms 17 4 0ms 0ms 18 4 0ms 0ms 19 4 0ms 0ms 20 4 0ms 0ms 21 4 0ms 0ms 22 4 0ms 0ms 23 4 0ms 0ms 00 4 0ms 0ms 01 4 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 01:11:01 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 19:57:46 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 01:56:03 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 0ms 7ms 0ms 2,786 44ms select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) end as pg_walfile_name;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 12 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 117 1ms 0ms 06 116 1ms 0ms 07 116 2ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 116 9ms 0ms 11 116 2ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 117 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 2ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 1ms 0ms 01 116 1ms 0ms [ User: azuresu - Total duration: 44ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 44ms - Times executed: 2786 ]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 08:16:20 Duration: 7ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 19:40:13 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 05:55:44 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 14s98ms 2,786 3ms 39ms 5ms With slots_info AS ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Oct 12 02 116 576ms 4ms 03 116 582ms 5ms 04 116 579ms 4ms 05 117 612ms 5ms 06 116 576ms 4ms 07 116 571ms 4ms 08 116 581ms 5ms 09 116 579ms 4ms 10 116 587ms 5ms 11 116 626ms 5ms 12 116 617ms 5ms 13 116 603ms 5ms 14 116 582ms 5ms 15 116 592ms 5ms 16 116 598ms 5ms 17 116 583ms 5ms 18 117 592ms 5ms 19 116 570ms 4ms 20 116 564ms 4ms 21 116 579ms 4ms 22 116 580ms 5ms 23 116 583ms 5ms 00 116 574ms 4ms 01 116 600ms 5ms [ User: azuresu - Total duration: 1s907ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s907ms - Times executed: 2786 ]
-
With slots_info AS ( ;
Date: 2025-10-12 03:49:06 Duration: 39ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-10-12 09:39:05 Duration: 21ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-10-12 23:25:04 Duration: 12ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 808ms 2,786 0ms 6ms 0ms SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;Times Reported Time consuming prepare #2
Day Hour Count Duration Avg duration 00 116 28ms 0ms 01 116 34ms 0ms 02 116 30ms 0ms 03 117 34ms 0ms 04 116 31ms 0ms 05 116 29ms 0ms 06 116 29ms 0ms 07 116 31ms 0ms 08 116 33ms 0ms 09 116 36ms 0ms 10 116 37ms 0ms 11 116 36ms 0ms 12 116 43ms 0ms 13 116 34ms 0ms 14 116 40ms 0ms 15 116 33ms 0ms 16 117 34ms 0ms 17 116 35ms 0ms 18 116 32ms 0ms 19 116 32ms 0ms 20 116 30ms 0ms 21 116 33ms 0ms 22 116 31ms 0ms 23 116 32ms 0ms [ User: azuresu - Total duration: 44ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 44ms - Times executed: 2786 ]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 14:53:21 Duration: 6ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 01:29:01 Duration: 5ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 12:39:28 Duration: 4ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 211ms 288 0ms 3ms 0ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';Times Reported Time consuming prepare #3
Day Hour Count Duration Avg duration 00 12 8ms 0ms 01 12 9ms 0ms 02 12 8ms 0ms 03 12 8ms 0ms 04 12 9ms 0ms 05 12 8ms 0ms 06 12 8ms 0ms 07 12 12ms 1ms 08 12 8ms 0ms 09 12 8ms 0ms 10 12 9ms 0ms 11 12 9ms 0ms 12 12 9ms 0ms 13 12 8ms 0ms 14 12 8ms 0ms 15 12 8ms 0ms 16 12 8ms 0ms 17 12 8ms 0ms 18 12 8ms 0ms 19 12 8ms 0ms 20 12 8ms 0ms 21 12 8ms 0ms 22 12 8ms 0ms 23 12 8ms 0ms [ User: azuresu - Total duration: 374ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 374ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 07:31:28 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 04:06:11 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 01:11:01 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 133ms 96 1ms 2ms 1ms SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming prepare #4
Day Hour Count Duration Avg duration 00 4 5ms 1ms 01 4 5ms 1ms 02 4 5ms 1ms 03 4 5ms 1ms 04 4 5ms 1ms 05 4 6ms 1ms 06 4 5ms 1ms 07 4 5ms 1ms 08 4 5ms 1ms 09 4 5ms 1ms 10 4 6ms 1ms 11 4 5ms 1ms 12 4 5ms 1ms 13 4 5ms 1ms 14 4 5ms 1ms 15 4 5ms 1ms 16 4 5ms 1ms 17 4 5ms 1ms 18 4 5ms 1ms 19 4 5ms 1ms 20 4 5ms 1ms 21 4 5ms 1ms 22 4 5ms 1ms 23 4 5ms 1ms [ User: azuresu - Total duration: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 96 ]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 10:11:47 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 05:26:18 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 01:11:01 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 73ms 48 1ms 4ms 1ms SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming prepare #5
Day Hour Count Duration Avg duration 00 2 3ms 1ms 01 2 2ms 1ms 02 2 2ms 1ms 03 2 2ms 1ms 04 2 5ms 2ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 2ms 1ms 08 2 2ms 1ms 09 2 3ms 1ms 10 2 3ms 1ms 11 2 2ms 1ms 12 2 3ms 1ms 13 2 2ms 1ms 14 2 2ms 1ms 15 2 2ms 1ms 16 2 2ms 1ms 17 2 2ms 1ms 18 2 4ms 2ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 2ms 1ms [ User: azuresu - Total duration: 59ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 59ms - Times executed: 48 ]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 04:07:21 Duration: 4ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 18:08:11 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 00:37:08 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
6 28ms 96 0ms 0ms 0ms SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming prepare #6
Day Hour Count Duration Avg duration 00 4 1ms 0ms 01 4 1ms 0ms 02 4 1ms 0ms 03 4 1ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 1ms 0ms 08 4 1ms 0ms 09 4 1ms 0ms 10 4 1ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 12:12:03 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 13:12:08 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 19:27:45 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 8ms 24 0ms 0ms 0ms SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;Times Reported Time consuming prepare #7
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 00:07:06 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 14:07:56 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 17:08:07 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 6ms 120 0ms 0ms 0ms set session statement_timeout to 120000;Times Reported Time consuming prepare #8
Day Hour Count Duration Avg duration 00 5 0ms 0ms 01 5 0ms 0ms 02 5 0ms 0ms 03 5 0ms 0ms 04 5 0ms 0ms 05 5 0ms 0ms 06 5 0ms 0ms 07 5 0ms 0ms 08 5 0ms 0ms 09 5 0ms 0ms 10 5 0ms 0ms 11 5 0ms 0ms 12 5 0ms 0ms 13 5 0ms 0ms 14 5 0ms 0ms 15 5 0ms 0ms 16 5 0ms 0ms 17 5 0ms 0ms 18 5 0ms 0ms 19 5 0ms 0ms 20 5 0ms 0ms 21 5 0ms 0ms 22 5 0ms 0ms 23 5 0ms 0ms [ User: azuresu - Total duration: 5ms - Times executed: 120 ]
[ Application: [unknown] - Total duration: 5ms - Times executed: 120 ]
-
set session statement_timeout to 120000;
Date: 2025-10-12 02:11:03 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 120000;
Date: 2025-10-12 23:13:01 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 120000;
Date: 2025-10-12 21:27:52 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
9 5ms 24 0ms 1ms 0ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;Times Reported Time consuming prepare #9
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 1ms 1ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 43ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 43ms - Times executed: 24 ]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 07:26:27 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 05:26:18 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 13:27:09 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
10 3ms 48 0ms 0ms 0ms set session statement_timeout to 60000;Times Reported Time consuming prepare #10
Day Hour Count Duration Avg duration 00 2 0ms 0ms 01 2 0ms 0ms 02 2 0ms 0ms 03 2 0ms 0ms 04 2 0ms 0ms 05 2 0ms 0ms 06 2 0ms 0ms 07 2 0ms 0ms 08 2 0ms 0ms 09 2 0ms 0ms 10 2 0ms 0ms 11 2 0ms 0ms 12 2 0ms 0ms 13 2 0ms 0ms 14 2 0ms 0ms 15 2 0ms 0ms 16 2 0ms 0ms 17 2 0ms 0ms 18 2 0ms 0ms 19 2 0ms 0ms 20 2 0ms 0ms 21 2 0ms 0ms 22 2 0ms 0ms 23 2 0ms 0ms [ User: azuresu - Total duration: 1ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 1ms - Times executed: 48 ]
-
set session statement_timeout to 60000;
Date: 2025-10-12 13:37:54 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 60000;
Date: 2025-10-12 04:37:22 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 60000;
Date: 2025-10-12 18:38:13 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
11 0ms 24 0ms 0ms 0ms set session statement_timeout to 90000;Times Reported Time consuming prepare #11
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 0ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 0ms - Times executed: 24 ]
-
set session statement_timeout to 90000;
Date: 2025-10-12 07:26:27 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 90000;
Date: 2025-10-12 12:27:04 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 90000;
Date: 2025-10-12 04:26:14 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 12s995ms 2,786 3ms 15ms 4ms With slots_info AS ( ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Oct 12 02 116 530ms 4ms 03 116 527ms 4ms 04 116 543ms 4ms 05 117 541ms 4ms 06 116 535ms 4ms 07 116 522ms 4ms 08 116 541ms 4ms 09 116 531ms 4ms 10 116 533ms 4ms 11 116 573ms 4ms 12 116 576ms 4ms 13 116 557ms 4ms 14 116 564ms 4ms 15 116 531ms 4ms 16 116 542ms 4ms 17 116 528ms 4ms 18 117 556ms 4ms 19 116 525ms 4ms 20 116 542ms 4ms 21 116 524ms 4ms 22 116 534ms 4ms 23 116 539ms 4ms 00 116 547ms 4ms 01 116 542ms 4ms [ User: azuresu - Total duration: 1s907ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s907ms - Times executed: 2786 ]
-
With slots_info AS ( ;
Date: 2025-10-12 18:54:13 Duration: 15ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-10-12 10:47:19 Duration: 14ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-10-12 16:09:51 Duration: 12ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 432ms 2,786 0ms 3ms 0ms SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;Times Reported Time consuming bind #2
Day Hour Count Duration Avg duration 00 116 19ms 0ms 01 116 18ms 0ms 02 116 20ms 0ms 03 117 16ms 0ms 04 116 17ms 0ms 05 116 22ms 0ms 06 116 18ms 0ms 07 116 17ms 0ms 08 116 18ms 0ms 09 116 20ms 0ms 10 116 19ms 0ms 11 116 17ms 0ms 12 116 18ms 0ms 13 116 17ms 0ms 14 116 19ms 0ms 15 116 19ms 0ms 16 117 17ms 0ms 17 116 15ms 0ms 18 116 15ms 0ms 19 116 17ms 0ms 20 116 16ms 0ms 21 116 18ms 0ms 22 116 15ms 0ms 23 116 16ms 0ms [ User: azuresu - Total duration: 44ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 44ms - Times executed: 2786 ]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 05:00:57 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 21:08:36 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-10-12 10:39:33 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 303ms 96 2ms 5ms 3ms SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming bind #3
Day Hour Count Duration Avg duration 00 4 12ms 3ms 01 4 11ms 2ms 02 4 14ms 3ms 03 4 11ms 2ms 04 4 13ms 3ms 05 4 12ms 3ms 06 4 12ms 3ms 07 4 12ms 3ms 08 4 13ms 3ms 09 4 12ms 3ms 10 4 14ms 3ms 11 4 12ms 3ms 12 4 12ms 3ms 13 4 14ms 3ms 14 4 12ms 3ms 15 4 12ms 3ms 16 4 11ms 2ms 17 4 12ms 3ms 18 4 12ms 3ms 19 4 12ms 3ms 20 4 12ms 3ms 21 4 11ms 2ms 22 4 11ms 2ms 23 4 13ms 3ms [ User: azuresu - Total duration: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 96 ]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 02:26:04 Duration: 5ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 13:12:08 Duration: 4ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT runtime_stats_entry_id, user_id, db_id, query_id, start_time, end_time, calls, total_time, min_time, max_time, mean_time, stddev_time, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time, plan_id, is_system_query, query_type, left (search_path, 256) as search_path, parameters_capture_status, search_path_capture_status FROM query_store.qs_view as qsv WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 23:13:01 Duration: 4ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 140ms 288 0ms 0ms 0ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';Times Reported Time consuming bind #4
Day Hour Count Duration Avg duration 00 12 5ms 0ms 01 12 6ms 0ms 02 12 6ms 0ms 03 12 6ms 0ms 04 12 5ms 0ms 05 12 6ms 0ms 06 12 5ms 0ms 07 12 6ms 0ms 08 12 5ms 0ms 09 12 6ms 0ms 10 12 5ms 0ms 11 12 6ms 0ms 12 12 6ms 0ms 13 12 5ms 0ms 14 12 5ms 0ms 15 12 6ms 0ms 16 12 5ms 0ms 17 12 5ms 0ms 18 12 5ms 0ms 19 12 5ms 0ms 20 12 5ms 0ms 21 12 5ms 0ms 22 12 5ms 0ms 23 12 5ms 0ms [ User: azuresu - Total duration: 374ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 374ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 12:37:05 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 10:01:45 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-10-12 12:27:04 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 101ms 48 1ms 2ms 2ms SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 00 2 4ms 2ms 01 2 4ms 2ms 02 2 4ms 2ms 03 2 4ms 2ms 04 2 3ms 1ms 05 2 4ms 2ms 06 2 4ms 2ms 07 2 3ms 1ms 08 2 4ms 2ms 09 2 4ms 2ms 10 2 4ms 2ms 11 2 4ms 2ms 12 2 4ms 2ms 13 2 4ms 2ms 14 2 3ms 1ms 15 2 4ms 2ms 16 2 4ms 2ms 17 2 3ms 1ms 18 2 4ms 2ms 19 2 4ms 2ms 20 2 4ms 2ms 21 2 4ms 2ms 22 2 4ms 2ms 23 2 4ms 2ms [ User: azuresu - Total duration: 59ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 59ms - Times executed: 48 ]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 11:07:45 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 22:08:25 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-10-12 03:37:19 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
6 47ms 96 0ms 0ms 0ms SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 00 4 1ms 0ms 01 4 2ms 0ms 02 4 1ms 0ms 03 4 2ms 0ms 04 4 2ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 1ms 0ms 08 4 1ms 0ms 09 4 2ms 0ms 10 4 2ms 0ms 11 4 1ms 0ms 12 4 2ms 0ms 13 4 2ms 0ms 14 4 1ms 0ms 15 4 2ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 2ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 09:41:42 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 13:27:09 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-10-12 12:27:04 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 15ms 24 0ms 0ms 0ms SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;Times Reported Time consuming bind #7
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 14:07:56 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 13:07:52 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-10-12 18:08:11 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 8ms 24 0ms 1ms 0ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;Times Reported Time consuming bind #8
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 1ms 1ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 43ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 43ms - Times executed: 24 ]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 20:27:47 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 14:27:19 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;
Date: 2025-10-12 13:27:09 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
9 4ms 216 0ms 0ms 0ms set session statement_timeout to 120000;Times Reported Time consuming bind #9
Day Hour Count Duration Avg duration 00 9 0ms 0ms 01 9 0ms 0ms 02 9 0ms 0ms 03 9 0ms 0ms 04 9 0ms 0ms 05 9 0ms 0ms 06 9 0ms 0ms 07 9 0ms 0ms 08 9 0ms 0ms 09 9 0ms 0ms 10 9 0ms 0ms 11 9 0ms 0ms 12 9 0ms 0ms 13 9 0ms 0ms 14 9 0ms 0ms 15 9 0ms 0ms 16 9 0ms 0ms 17 9 0ms 0ms 18 9 0ms 0ms 19 9 0ms 0ms 20 9 0ms 0ms 21 9 0ms 0ms 22 9 0ms 0ms 23 9 0ms 0ms [ User: azuresu - Total duration: 7ms - Times executed: 216 ]
[ Application: [unknown] - Total duration: 7ms - Times executed: 216 ]
-
set session statement_timeout to 120000;
Date: 2025-10-12 03:41:09 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 120000;
Date: 2025-10-12 01:26:01 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 120000;
Date: 2025-10-12 21:27:52 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
10 0ms 48 0ms 0ms 0ms set session statement_timeout to 60000;Times Reported Time consuming bind #10
Day Hour Count Duration Avg duration 00 2 0ms 0ms 01 2 0ms 0ms 02 2 0ms 0ms 03 2 0ms 0ms 04 2 0ms 0ms 05 2 0ms 0ms 06 2 0ms 0ms 07 2 0ms 0ms 08 2 0ms 0ms 09 2 0ms 0ms 10 2 0ms 0ms 11 2 0ms 0ms 12 2 0ms 0ms 13 2 0ms 0ms 14 2 0ms 0ms 15 2 0ms 0ms 16 2 0ms 0ms 17 2 0ms 0ms 18 2 0ms 0ms 19 2 0ms 0ms 20 2 0ms 0ms 21 2 0ms 0ms 22 2 0ms 0ms 23 2 0ms 0ms [ User: azuresu - Total duration: 1ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 1ms - Times executed: 48 ]
-
set session statement_timeout to 60000;
Date: 2025-10-12 03:37:19 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 60000;
Date: 2025-10-12 17:38:09 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 60000;
Date: 2025-10-12 02:37:15 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
11 0ms 24 0ms 0ms 0ms set session statement_timeout to 90000;Times Reported Time consuming bind #11
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 0ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 0ms - Times executed: 24 ]
-
set session statement_timeout to 90000;
Date: 2025-10-12 19:27:45 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 90000;
Date: 2025-10-12 23:28:01 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
set session statement_timeout to 90000;
Date: 2025-10-12 18:27:38 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
Events
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
Errors per 5 minutes
NO DATASET
Most Frequent Errors/Events
Key values
- 0 Max number of times the same event was reported
- 0 Total events found
Rank Times reported Error NO DATASET