-
Global information
- Generated on Tue Sep 30 09:05:17 2025
- Log file: ././A3D-RND-REF/y=2025/m=09/d=29/h=00/m=00/PT1H.log, ..., ././A3D-RND-REF/y=2025/m=09/d=29/h=23/m=00/PT1H.log
- Parsed 41,163 log entries in 3m46s
- Log start from 2025-09-29 00:00:15 to 2025-09-29 23:59:46
-
Overview
Global Stats
- 11 Number of unique normalized queries
- 9,510 Number of queries
- 32s577ms Total query duration
- 2025-09-29 00:00:15 First query
- 2025-09-29 23:59:56 Last query
- 9 queries/s at 2025-09-29 05:00:34 Query peak
- 32s577ms Total query duration
- 15s688ms Prepare/parse total duration
- 14s105ms Bind total duration
- 2s783ms 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,122 Total number of sessions
- 3 sessions at 2025-09-29 12:57:07 Session peak
- 17h8m17s Total duration of sessions
- 19s762ms Average duration of sessions
- 3 Average queries per session
- 10ms Average queries duration per session
- 19s751ms Average idle time per session
- 3,122 Total number of connections
- 2 connections/s at 2025-09-29 02:55:28 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 9 queries/s Query Peak
- 2025-09-29 05:00:34 Date
SELECT Traffic
Key values
- 5 queries/s Query Peak
- 2025-09-29 05:00:34 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2025-09-29 10:10:10 Date
Queries duration
Key values
- 32s577ms 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) Sep 29 00 396 0ms 2ms 0ms 2ms 3ms 5ms 01 396 0ms 3ms 0ms 3ms 3ms 4ms 02 396 0ms 2ms 0ms 3ms 4ms 5ms 03 396 0ms 2ms 0ms 3ms 4ms 5ms 04 396 0ms 2ms 0ms 2ms 3ms 4ms 05 396 0ms 3ms 0ms 3ms 4ms 4ms 06 398 0ms 6ms 0ms 4ms 5ms 7ms 07 396 0ms 5ms 0ms 3ms 3ms 8ms 08 396 0ms 2ms 0ms 3ms 3ms 3ms 09 396 0ms 2ms 0ms 3ms 3ms 4ms 10 397 0ms 3ms 0ms 3ms 4ms 4ms 11 396 0ms 3ms 0ms 3ms 4ms 5ms 12 396 0ms 3ms 0ms 3ms 4ms 5ms 13 396 0ms 2ms 0ms 3ms 3ms 4ms 14 396 0ms 2ms 0ms 3ms 3ms 4ms 15 396 0ms 4ms 0ms 3ms 3ms 6ms 16 396 0ms 2ms 0ms 2ms 3ms 5ms 17 396 0ms 3ms 0ms 3ms 4ms 5ms 18 398 0ms 2ms 0ms 3ms 4ms 6ms 19 396 0ms 2ms 0ms 3ms 3ms 5ms 20 396 0ms 2ms 0ms 2ms 3ms 5ms 21 396 0ms 4ms 0ms 3ms 3ms 4ms 22 397 0ms 2ms 0ms 3ms 3ms 5ms 23 396 0ms 2ms 0ms 3ms 3ms 4ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 29 00 140 0 0ms 1ms 1ms 1ms 01 140 0 0ms 1ms 1ms 1ms 02 140 0 0ms 1ms 1ms 1ms 03 140 0 0ms 1ms 1ms 1ms 04 140 0 0ms 1ms 1ms 1ms 05 140 0 0ms 1ms 1ms 2ms 06 141 0 0ms 1ms 1ms 2ms 07 140 0 0ms 1ms 1ms 2ms 08 140 0 0ms 1ms 1ms 1ms 09 140 0 0ms 1ms 1ms 2ms 10 140 0 0ms 1ms 1ms 2ms 11 140 0 0ms 1ms 1ms 1ms 12 140 0 0ms 1ms 1ms 2ms 13 140 0 0ms 1ms 1ms 1ms 14 140 0 0ms 1ms 1ms 1ms 15 140 0 0ms 1ms 1ms 1ms 16 140 0 0ms 1ms 1ms 1ms 17 140 0 0ms 1ms 1ms 1ms 18 141 0 0ms 1ms 1ms 1ms 19 140 0 0ms 1ms 1ms 1ms 20 140 0 0ms 1ms 1ms 1ms 21 140 0 0ms 1ms 1ms 1ms 22 140 0 0ms 1ms 1ms 1ms 23 140 0 0ms 1ms 1ms 1ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 29 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 Sep 29 00 264 268 1.02 103.12% 01 264 268 1.02 103.12% 02 264 268 1.02 103.12% 03 264 268 1.02 103.12% 04 264 268 1.02 103.12% 05 264 268 1.02 103.12% 06 266 270 1.02 103.10% 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 264 268 1.02 103.12% 17 264 268 1.02 103.12% 18 266 270 1.02 103.10% 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 Sep 29 00 130 0.04/s 01 130 0.04/s 02 130 0.04/s 03 130 0.04/s 04 130 0.04/s 05 130 0.04/s 06 131 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 130 0.04/s 17 130 0.04/s 18 131 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 Sep 29 00 130 19s758ms 19s757ms 01 131 19s760ms 19s759ms 02 130 19s758ms 19s757ms 03 130 19s761ms 19s760ms 04 130 19s757ms 19s756ms 05 130 19s759ms 19s758ms 06 130 19s758ms 19s756ms 07 130 19s757ms 19s756ms 08 130 19s760ms 19s759ms 09 130 19s767ms 19s766ms 10 130 19s767ms 19s766ms 11 130 19s780ms 19s779ms 12 130 19s768ms 19s767ms 13 130 19s763ms 19s762ms 14 131 19s761ms 19s760ms 15 130 19s757ms 19s756ms 16 130 19s759ms 19s758ms 17 130 19s769ms 19s768ms 18 130 19s761ms 19s760ms 19 130 19s764ms 19s763ms 20 130 19s760ms 19s760ms 21 130 19s761ms 19s760ms 22 130 19s760ms 19s760ms 23 130 19s758ms 19s757ms -
Connections
Established Connections
Key values
- 2 connections Connection Peak
- 2025-09-29 02:55:28 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
- 3 sessions Session Peak
- 2025-09-29 12:57:07 Date
Histogram of session times
Key values
- 3,074 1000-30000ms duration
Sessions per database
Key values
- azure_sys Main Database
- 3,122 sessions Total
Sessions per user
Key values
- azuresu Main User
- 3,122 sessions Total
Sessions per host
Key values
- 169.254.128.1 Main Host
- 3,122 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 Sep 29 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 Sep 29 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 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 1 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
- 2s783ms (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 2s783ms cte 2,786 1s889ms others 3,362 377ms select 3,362 516ms Duration by user
Key values
- 2s783ms (azuresu) Main time consuming user
User Request type Count Duration azuresu Total 9,510 2s783ms cte 2,786 1s889ms others 3,362 377ms select 3,362 516ms Queries by host
Key values
- 169.254.128.1 Main host
- 9,510 Requests
- 2s783ms (169.254.128.1)
- Main time consuming host
Queries by application
Key values
- [unknown] Main application
- 9,510 Requests
- 2s783ms ([unknown])
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-09-29 10:10:10 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 8,835 0-1ms duration
Slowest individual queries
Rank Duration Query 1 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-09-29 06:29:28 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
2 5ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;[ Date: 2025-09-29 07:00:44 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
3 4ms 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-09-29 15:19:16 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
4 4ms 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-09-29 21:21:36 - 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-09-29 01:33:17 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
6 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-09-29 06:27:24 - 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-09-29 12:53:30 - 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-09-29 07:24:46 - 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-09-29 11:11:41 - 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-09-29 17:11:26 - 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-09-29 10:42:44 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
12 3ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';[ Date: 2025-09-29 05:45:36 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
13 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-09-29 03:52:51 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
14 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-09-29 22:58:16 - 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-09-29 03:08:24 - 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-09-29 02:58:03 - 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-09-29 18:32:35 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
18 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-09-29 10:35:30 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
19 2ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;[ Date: 2025-09-29 20:02:12 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
20 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-09-29 07:12:22 - 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 1s889ms 2,786 0ms 6ms 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 Sep 29 02 116 74ms 0ms 03 116 70ms 0ms 04 116 81ms 0ms 05 116 80ms 0ms 06 116 73ms 0ms 07 116 70ms 0ms 08 117 96ms 0ms 09 116 83ms 0ms 10 116 79ms 0ms 11 116 77ms 0ms 12 116 83ms 0ms 13 116 84ms 0ms 14 116 78ms 0ms 15 116 74ms 0ms 16 116 77ms 0ms 17 116 78ms 0ms 18 116 76ms 0ms 19 116 82ms 0ms 20 117 84ms 0ms 21 116 73ms 0ms 22 116 71ms 0ms 23 116 79ms 0ms 00 116 79ms 0ms 01 116 75ms 0ms [ User: azuresu - Total duration: 1s889ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s889ms - 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-09-29 06:29:28 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-09-29 15:19:16 Duration: 4ms 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-09-29 21:21:36 Duration: 4ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 369ms 288 0ms 3ms 1ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 29 02 12 15ms 1ms 03 12 15ms 1ms 04 12 16ms 1ms 05 12 16ms 1ms 06 12 14ms 1ms 07 12 16ms 1ms 08 12 17ms 1ms 09 12 15ms 1ms 10 12 15ms 1ms 11 12 16ms 1ms 12 12 15ms 1ms 13 12 15ms 1ms 14 12 15ms 1ms 15 12 16ms 1ms 16 12 14ms 1ms 17 12 15ms 1ms 18 12 14ms 1ms 19 12 15ms 1ms 20 12 14ms 1ms 21 12 14ms 1ms 22 12 14ms 1ms 23 12 14ms 1ms 00 12 15ms 1ms 01 12 14ms 1ms [ User: azuresu - Total duration: 369ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 369ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-09-29 05:45:36 Duration: 3ms 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-09-29 06:25:40 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-09-29 10:41:15 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 329ms 2,978 0ms 2ms 0ms discard all;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 29 02 124 13ms 0ms 03 124 13ms 0ms 04 124 13ms 0ms 05 124 13ms 0ms 06 124 13ms 0ms 07 124 13ms 0ms 08 124 15ms 0ms 09 124 13ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 125 13ms 0ms 13 124 13ms 0ms 14 124 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 13ms 0ms 19 124 13ms 0ms 20 124 13ms 0ms 21 124 13ms 0ms 22 124 13ms 0ms 23 124 13ms 0ms 00 125 13ms 0ms 01 124 13ms 0ms [ User: azuresu - Total duration: 329ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 329ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-09-29 06:33:46 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-09-29 09:26:12 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-09-29 12:19:02 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
4 57ms 48 0ms 1ms 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 Sep 29 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 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 1ms 0ms 00 2 2ms 1ms 01 2 2ms 1ms [ User: azuresu - Total duration: 57ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 57ms - 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-09-29 20:49:40 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-09-29 14:19:17 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-09-29 07:48:55 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 40ms 2,786 0ms 1ms 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 Sep 29 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 116 2ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 117 1ms 0ms 09 116 2ms 0ms 10 116 1ms 0ms 11 116 1ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 3ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 116 2ms 0ms 19 116 1ms 0ms 20 117 2ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 2ms 0ms 01 116 1ms 0ms [ User: azuresu - Total duration: 40ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 40ms - 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-09-29 12:03:53 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-09-29 16:14:34 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-09-29 03:16:09 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 38ms 24 0ms 5ms 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 Sep 29 02 1 1ms 1ms 03 1 0ms 0ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 5ms 5ms 10 1 1ms 1ms 11 1 1ms 1ms 12 1 1ms 1ms 13 1 1ms 1ms 14 1 1ms 1ms 15 1 1ms 1ms 16 1 1ms 1ms 17 1 1ms 1ms 18 1 1ms 1ms 19 1 1ms 1ms 20 1 1ms 1ms 21 1 2ms 2ms 22 1 2ms 2ms 23 1 0ms 0ms 00 1 1ms 1ms 01 1 1ms 1ms [ User: azuresu - Total duration: 38ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 38ms - 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-09-29 07:00:44 Duration: 5ms 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-09-29 20:02:12 Duration: 2ms 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-09-29 19:02:05 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
7 34ms 96 0ms 1ms 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 Sep 29 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 2ms 0ms 09 4 2ms 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 2ms 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: 34ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 34ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-09-29 18:32:14 Duration: 1ms 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-09-29 07:00:54 Duration: 1ms 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-09-29 06:45:52 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
8 13ms 288 0ms 0ms 0ms set session statement_timeout to ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 29 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 1ms 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: 13ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 13ms - Times executed: 288 ]
-
set session statement_timeout to 60000;
Date: 2025-09-29 10:19:04 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 60000;
Date: 2025-09-29 23:19:49 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 60000;
Date: 2025-09-29 16:19:24 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 4ms 24 0ms 0ms 0ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 29 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: 4ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 4ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-09-29 06:48:51 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-09-29 07:48:55 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-09-29 18:49:33 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 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 #10
Day Hour Count Duration Avg duration Sep 29 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-09-29 12:16:30 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-09-29 02:30:28 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-09-29 01:00:25 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 1ms 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 Sep 29 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: 1ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 1ms - 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-09-29 19:02:05 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-09-29 19:17:07 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-09-29 10:01:09 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 329ms 0ms 2ms 0ms discard all;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 29 02 124 13ms 0ms 03 124 13ms 0ms 04 124 13ms 0ms 05 124 13ms 0ms 06 124 13ms 0ms 07 124 13ms 0ms 08 124 15ms 0ms 09 124 13ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 125 13ms 0ms 13 124 13ms 0ms 14 124 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 13ms 0ms 19 124 13ms 0ms 20 124 13ms 0ms 21 124 13ms 0ms 22 124 13ms 0ms 23 124 13ms 0ms 00 125 13ms 0ms 01 124 13ms 0ms [ User: azuresu - Total duration: 329ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 329ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-09-29 06:33:46 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-09-29 09:26:12 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-09-29 12:19:02 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
2 2,786 1s889ms 0ms 6ms 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 Sep 29 02 116 74ms 0ms 03 116 70ms 0ms 04 116 81ms 0ms 05 116 80ms 0ms 06 116 73ms 0ms 07 116 70ms 0ms 08 117 96ms 0ms 09 116 83ms 0ms 10 116 79ms 0ms 11 116 77ms 0ms 12 116 83ms 0ms 13 116 84ms 0ms 14 116 78ms 0ms 15 116 74ms 0ms 16 116 77ms 0ms 17 116 78ms 0ms 18 116 76ms 0ms 19 116 82ms 0ms 20 117 84ms 0ms 21 116 73ms 0ms 22 116 71ms 0ms 23 116 79ms 0ms 00 116 79ms 0ms 01 116 75ms 0ms [ User: azuresu - Total duration: 1s889ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s889ms - 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-09-29 06:29:28 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-09-29 15:19:16 Duration: 4ms 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-09-29 21:21:36 Duration: 4ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 2,786 40ms 0ms 1ms 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 Sep 29 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 116 2ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 117 1ms 0ms 09 116 2ms 0ms 10 116 1ms 0ms 11 116 1ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 3ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 116 2ms 0ms 19 116 1ms 0ms 20 117 2ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 2ms 0ms 01 116 1ms 0ms [ User: azuresu - Total duration: 40ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 40ms - 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-09-29 12:03:53 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-09-29 16:14:34 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-09-29 03:16:09 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
4 288 369ms 0ms 3ms 1ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 29 02 12 15ms 1ms 03 12 15ms 1ms 04 12 16ms 1ms 05 12 16ms 1ms 06 12 14ms 1ms 07 12 16ms 1ms 08 12 17ms 1ms 09 12 15ms 1ms 10 12 15ms 1ms 11 12 16ms 1ms 12 12 15ms 1ms 13 12 15ms 1ms 14 12 15ms 1ms 15 12 16ms 1ms 16 12 14ms 1ms 17 12 15ms 1ms 18 12 14ms 1ms 19 12 15ms 1ms 20 12 14ms 1ms 21 12 14ms 1ms 22 12 14ms 1ms 23 12 14ms 1ms 00 12 15ms 1ms 01 12 14ms 1ms [ User: azuresu - Total duration: 369ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 369ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-09-29 05:45:36 Duration: 3ms 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-09-29 06:25:40 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-09-29 10:41:15 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 288 13ms 0ms 0ms 0ms set session statement_timeout to ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 29 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 1ms 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: 13ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 13ms - Times executed: 288 ]
-
set session statement_timeout to 60000;
Date: 2025-09-29 10:19:04 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 60000;
Date: 2025-09-29 23:19:49 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 60000;
Date: 2025-09-29 16:19:24 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 96 34ms 0ms 1ms 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 Sep 29 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 2ms 0ms 09 4 2ms 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 2ms 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: 34ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 34ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-09-29 18:32:14 Duration: 1ms 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-09-29 07:00:54 Duration: 1ms 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-09-29 06:45:52 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 Sep 29 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-09-29 12:16:30 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-09-29 02:30:28 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-09-29 01:00:25 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
8 96 1ms 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 Sep 29 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: 1ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 1ms - 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-09-29 19:02:05 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-09-29 19:17:07 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-09-29 10:01:09 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 48 57ms 0ms 1ms 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 Sep 29 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 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 1ms 0ms 00 2 2ms 1ms 01 2 2ms 1ms [ User: azuresu - Total duration: 57ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 57ms - 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-09-29 20:49:40 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-09-29 14:19:17 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-09-29 07:48:55 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 24 38ms 0ms 5ms 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 Sep 29 02 1 1ms 1ms 03 1 0ms 0ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 5ms 5ms 10 1 1ms 1ms 11 1 1ms 1ms 12 1 1ms 1ms 13 1 1ms 1ms 14 1 1ms 1ms 15 1 1ms 1ms 16 1 1ms 1ms 17 1 1ms 1ms 18 1 1ms 1ms 19 1 1ms 1ms 20 1 1ms 1ms 21 1 2ms 2ms 22 1 2ms 2ms 23 1 0ms 0ms 00 1 1ms 1ms 01 1 1ms 1ms [ User: azuresu - Total duration: 38ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 38ms - 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-09-29 07:00:44 Duration: 5ms 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-09-29 20:02:12 Duration: 2ms 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-09-29 19:02:05 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 24 4ms 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 Sep 29 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: 4ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 4ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-09-29 06:48:51 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-09-29 07:48:55 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-09-29 18:49:33 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 5ms 1ms 24 38ms 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 Sep 29 02 1 1ms 1ms 03 1 0ms 0ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 5ms 5ms 10 1 1ms 1ms 11 1 1ms 1ms 12 1 1ms 1ms 13 1 1ms 1ms 14 1 1ms 1ms 15 1 1ms 1ms 16 1 1ms 1ms 17 1 1ms 1ms 18 1 1ms 1ms 19 1 1ms 1ms 20 1 1ms 1ms 21 1 2ms 2ms 22 1 2ms 2ms 23 1 0ms 0ms 00 1 1ms 1ms 01 1 1ms 1ms [ User: azuresu - Total duration: 38ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 38ms - 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-09-29 07:00:44 Duration: 5ms 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-09-29 20:02:12 Duration: 2ms 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-09-29 19:02:05 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 0ms 3ms 1ms 288 369ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 29 02 12 15ms 1ms 03 12 15ms 1ms 04 12 16ms 1ms 05 12 16ms 1ms 06 12 14ms 1ms 07 12 16ms 1ms 08 12 17ms 1ms 09 12 15ms 1ms 10 12 15ms 1ms 11 12 16ms 1ms 12 12 15ms 1ms 13 12 15ms 1ms 14 12 15ms 1ms 15 12 16ms 1ms 16 12 14ms 1ms 17 12 15ms 1ms 18 12 14ms 1ms 19 12 15ms 1ms 20 12 14ms 1ms 21 12 14ms 1ms 22 12 14ms 1ms 23 12 14ms 1ms 00 12 15ms 1ms 01 12 14ms 1ms [ User: azuresu - Total duration: 369ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 369ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-09-29 05:45:36 Duration: 3ms 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-09-29 06:25:40 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-09-29 10:41:15 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 0ms 1ms 1ms 48 57ms 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 Sep 29 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 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 1ms 0ms 00 2 2ms 1ms 01 2 2ms 1ms [ User: azuresu - Total duration: 57ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 57ms - 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-09-29 20:49:40 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-09-29 14:19:17 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-09-29 07:48:55 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
4 0ms 6ms 0ms 2,786 1s889ms 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 Sep 29 02 116 74ms 0ms 03 116 70ms 0ms 04 116 81ms 0ms 05 116 80ms 0ms 06 116 73ms 0ms 07 116 70ms 0ms 08 117 96ms 0ms 09 116 83ms 0ms 10 116 79ms 0ms 11 116 77ms 0ms 12 116 83ms 0ms 13 116 84ms 0ms 14 116 78ms 0ms 15 116 74ms 0ms 16 116 77ms 0ms 17 116 78ms 0ms 18 116 76ms 0ms 19 116 82ms 0ms 20 117 84ms 0ms 21 116 73ms 0ms 22 116 71ms 0ms 23 116 79ms 0ms 00 116 79ms 0ms 01 116 75ms 0ms [ User: azuresu - Total duration: 1s889ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s889ms - 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-09-29 06:29:28 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-09-29 15:19:16 Duration: 4ms 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-09-29 21:21:36 Duration: 4ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 0ms 1ms 0ms 96 34ms 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 Sep 29 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 2ms 0ms 09 4 2ms 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 2ms 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: 34ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 34ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-09-29 18:32:14 Duration: 1ms 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-09-29 07:00:54 Duration: 1ms 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-09-29 06:45:52 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
6 0ms 0ms 0ms 24 4ms 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 Sep 29 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: 4ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 4ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-09-29 06:48:51 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-09-29 07:48:55 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-09-29 18:49:33 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
7 0ms 2ms 0ms 2,978 329ms discard all;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 29 02 124 13ms 0ms 03 124 13ms 0ms 04 124 13ms 0ms 05 124 13ms 0ms 06 124 13ms 0ms 07 124 13ms 0ms 08 124 15ms 0ms 09 124 13ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 125 13ms 0ms 13 124 13ms 0ms 14 124 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 13ms 0ms 19 124 13ms 0ms 20 124 13ms 0ms 21 124 13ms 0ms 22 124 13ms 0ms 23 124 13ms 0ms 00 125 13ms 0ms 01 124 13ms 0ms [ User: azuresu - Total duration: 329ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 329ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-09-29 06:33:46 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-09-29 09:26:12 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-09-29 12:19:02 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
8 0ms 0ms 0ms 288 13ms set session statement_timeout to ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 29 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 1ms 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: 13ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 13ms - Times executed: 288 ]
-
set session statement_timeout to 60000;
Date: 2025-09-29 10:19:04 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 60000;
Date: 2025-09-29 23:19:49 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 60000;
Date: 2025-09-29 16:19:24 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 Sep 29 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-09-29 12:16:30 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-09-29 02:30:28 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-09-29 01:00:25 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 0ms 0ms 0ms 96 1ms 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 Sep 29 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: 1ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 1ms - 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-09-29 19:02:05 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-09-29 19:17:07 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-09-29 10:01:09 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 0ms 1ms 0ms 2,786 40ms 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 Sep 29 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 116 2ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 117 1ms 0ms 09 116 2ms 0ms 10 116 1ms 0ms 11 116 1ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 3ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 116 2ms 0ms 19 116 1ms 0ms 20 117 2ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 2ms 0ms 01 116 1ms 0ms [ User: azuresu - Total duration: 40ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 40ms - 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-09-29 12:03:53 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-09-29 16:14:34 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-09-29 03:16:09 Duration: 0ms 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 14s332ms 2,786 4ms 22ms 5ms With slots_info AS ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Sep 29 02 116 573ms 4ms 03 116 577ms 4ms 04 116 592ms 5ms 05 116 587ms 5ms 06 116 588ms 5ms 07 116 583ms 5ms 08 117 669ms 5ms 09 116 603ms 5ms 10 116 589ms 5ms 11 116 643ms 5ms 12 116 589ms 5ms 13 116 598ms 5ms 14 116 593ms 5ms 15 116 612ms 5ms 16 116 595ms 5ms 17 116 603ms 5ms 18 116 588ms 5ms 19 116 587ms 5ms 20 117 607ms 5ms 21 116 586ms 5ms 22 116 593ms 5ms 23 116 591ms 5ms 00 116 592ms 5ms 01 116 582ms 5ms [ User: azuresu - Total duration: 1s889ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s889ms - Times executed: 2786 ]
-
With slots_info AS ( ;
Date: 2025-09-29 09:05:34 Duration: 22ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-09-29 21:16:57 Duration: 15ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-09-29 06:52:43 Duration: 13ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 813ms 2,786 0ms 4ms 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 29ms 0ms 01 116 32ms 0ms 02 116 30ms 0ms 03 116 31ms 0ms 04 116 30ms 0ms 05 116 31ms 0ms 06 117 42ms 0ms 07 116 34ms 0ms 08 116 37ms 0ms 09 116 36ms 0ms 10 116 33ms 0ms 11 116 32ms 0ms 12 116 37ms 0ms 13 116 43ms 0ms 14 116 35ms 0ms 15 116 39ms 0ms 16 116 34ms 0ms 17 116 30ms 0ms 18 117 31ms 0ms 19 116 33ms 0ms 20 116 31ms 0ms 21 116 32ms 0ms 22 116 30ms 0ms 23 116 30ms 0ms [ User: azuresu - Total duration: 40ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 40ms - 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-09-29 16:57:59 Duration: 4ms 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-09-29 06:29:59 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-09-29 08:10:46 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 218ms 288 0ms 4ms 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 8ms 0ms 02 12 8ms 0ms 03 12 9ms 0ms 04 12 8ms 0ms 05 12 9ms 0ms 06 12 22ms 1ms 07 12 8ms 0ms 08 12 8ms 0ms 09 12 9ms 0ms 10 12 8ms 0ms 11 12 8ms 0ms 12 12 8ms 0ms 13 12 8ms 0ms 14 12 8ms 0ms 15 12 9ms 0ms 16 12 8ms 0ms 17 12 8ms 0ms 18 12 8ms 0ms 19 12 8ms 0ms 20 12 8ms 0ms 21 12 7ms 0ms 22 12 8ms 0ms 23 12 8ms 0ms [ User: azuresu - Total duration: 369ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 369ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-09-29 06:30:40 Duration: 4ms 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-09-29 06:50:42 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-09-29 06:40:41 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 172ms 96 1ms 13ms 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 5ms 1ms 06 4 22ms 5ms 07 4 17ms 4ms 08 4 5ms 1ms 09 4 5ms 1ms 10 4 5ms 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 14ms 3ms 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-09-29 07:00:44 Duration: 13ms 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-09-29 18:32:04 Duration: 10ms 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-09-29 06:45:42 Duration: 9ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 89ms 48 1ms 12ms 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 2ms 1ms 01 2 3ms 1ms 02 2 2ms 1ms 03 2 2ms 1ms 04 2 3ms 1ms 05 2 3ms 1ms 06 2 13ms 6ms 07 2 5ms 2ms 08 2 3ms 1ms 09 2 2ms 1ms 10 2 2ms 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 8ms 4ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 3ms 1ms [ User: azuresu - Total duration: 57ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 57ms - 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-09-29 06:48:51 Duration: 12ms 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-09-29 18:49:33 Duration: 6ms 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-09-29 07:18:53 Duration: 4ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
6 29ms 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: 1ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 1ms - 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-09-29 06:45: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-09-29 06:00:37 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-09-29 07:00:44 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 15ms 24 0ms 3ms 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 3ms 3ms 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 3ms 3ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 4ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 4ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-09-29 18:49:33 Duration: 3ms 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-09-29 06:48:51 Duration: 3ms 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-09-29 07:48:55 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 8ms 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-09-29 14:16:46 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-09-29 01:48:33 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-09-29 06:45:42 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 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 1ms 1ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 38ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 38ms - 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-09-29 19:02:05 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-09-29 07:00:44 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-09-29 06:00:37 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: 4ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 4ms - Times executed: 48 ]
-
set session statement_timeout to 60000;
Date: 2025-09-29 04:18:42 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-09-29 00:18:27 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-09-29 23:19:49 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-09-29 12:01:28 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-09-29 11:01:18 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-09-29 07:00:44 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 12s905ms 2,786 3ms 14ms 4ms With slots_info AS ( ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Sep 29 02 116 524ms 4ms 03 116 517ms 4ms 04 116 529ms 4ms 05 116 541ms 4ms 06 116 537ms 4ms 07 116 528ms 4ms 08 117 586ms 5ms 09 116 548ms 4ms 10 116 549ms 4ms 11 116 536ms 4ms 12 116 561ms 4ms 13 116 545ms 4ms 14 116 562ms 4ms 15 116 534ms 4ms 16 116 546ms 4ms 17 116 527ms 4ms 18 116 526ms 4ms 19 116 532ms 4ms 20 117 543ms 4ms 21 116 530ms 4ms 22 116 517ms 4ms 23 116 521ms 4ms 00 116 536ms 4ms 01 116 519ms 4ms [ User: azuresu - Total duration: 1s889ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s889ms - Times executed: 2786 ]
-
With slots_info AS ( ;
Date: 2025-09-29 06:38:46 Duration: 14ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-09-29 11:07:33 Duration: 13ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-09-29 12:50:55 Duration: 13ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 443ms 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 17ms 0ms 01 116 16ms 0ms 02 116 17ms 0ms 03 116 15ms 0ms 04 116 19ms 0ms 05 116 19ms 0ms 06 117 26ms 0ms 07 116 17ms 0ms 08 116 18ms 0ms 09 116 18ms 0ms 10 116 16ms 0ms 11 116 21ms 0ms 12 116 17ms 0ms 13 116 16ms 0ms 14 116 17ms 0ms 15 116 18ms 0ms 16 116 19ms 0ms 17 116 16ms 0ms 18 117 17ms 0ms 19 116 19ms 0ms 20 116 18ms 0ms 21 116 16ms 0ms 22 116 21ms 0ms 23 116 19ms 0ms [ User: azuresu - Total duration: 40ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 40ms - 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-09-29 04:53:19 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-09-29 06:51:10 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-09-29 23:46:20 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 382ms 96 2ms 45ms 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 11ms 2ms 01 4 11ms 2ms 02 4 13ms 3ms 03 4 12ms 3ms 04 4 11ms 2ms 05 4 12ms 3ms 06 4 68ms 17ms 07 4 24ms 6ms 08 4 12ms 3ms 09 4 12ms 3ms 10 4 13ms 3ms 11 4 12ms 3ms 12 4 12ms 3ms 13 4 12ms 3ms 14 4 12ms 3ms 15 4 12ms 3ms 16 4 12ms 3ms 17 4 12ms 3ms 18 4 30ms 7ms 19 4 12ms 3ms 20 4 11ms 2ms 21 4 11ms 2ms 22 4 12ms 3ms 23 4 12ms 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-09-29 06:30:40 Duration: 45ms 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-09-29 18:32:04 Duration: 17ms 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-09-29 06:45:42 Duration: 16ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 148ms 288 0ms 4ms 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 6ms 0ms 01 12 6ms 0ms 02 12 6ms 0ms 03 12 6ms 0ms 04 12 5ms 0ms 05 12 6ms 0ms 06 12 11ms 0ms 07 12 5ms 0ms 08 12 5ms 0ms 09 12 6ms 0ms 10 12 6ms 0ms 11 12 6ms 0ms 12 12 5ms 0ms 13 12 6ms 0ms 14 12 5ms 0ms 15 12 6ms 0ms 16 12 5ms 0ms 17 12 5ms 0ms 18 12 5ms 0ms 19 12 6ms 0ms 20 12 5ms 0ms 21 12 5ms 0ms 22 12 5ms 0ms 23 12 5ms 0ms [ User: azuresu - Total duration: 369ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 369ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-09-29 06:10:37 Duration: 4ms 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-09-29 19:52:12 Duration: 1ms 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-09-29 06:35:41 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 130ms 48 1ms 18ms 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 3ms 1ms 01 2 4ms 2ms 02 2 4ms 2ms 03 2 3ms 1ms 04 2 3ms 1ms 05 2 3ms 1ms 06 2 20ms 10ms 07 2 10ms 5ms 08 2 3ms 1ms 09 2 4ms 2ms 10 2 3ms 1ms 11 2 4ms 2ms 12 2 4ms 2ms 13 2 4ms 2ms 14 2 4ms 2ms 15 2 3ms 1ms 16 2 4ms 2ms 17 2 4ms 2ms 18 2 12ms 6ms 19 2 3ms 1ms 20 2 3ms 1ms 21 2 3ms 1ms 22 2 4ms 2ms 23 2 4ms 2ms [ User: azuresu - Total duration: 57ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 57ms - 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-09-29 06:48:51 Duration: 18ms 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-09-29 18:49:33 Duration: 9ms 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-09-29 07:18:53 Duration: 8ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
6 52ms 96 0ms 1ms 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 2ms 0ms 01 4 1ms 0ms 02 4 2ms 0ms 03 4 2ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 4ms 1ms 07 4 3ms 0ms 08 4 2ms 0ms 09 4 2ms 0ms 10 4 1ms 0ms 11 4 1ms 0ms 12 4 2ms 0ms 13 4 2ms 0ms 14 4 2ms 0ms 15 4 3ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 2ms 0ms 19 4 2ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms [ User: azuresu - Total duration: 1ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 1ms - 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-09-29 07:00:44 Duration: 1ms 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-09-29 06:45:42 Duration: 1ms 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-09-29 06:30:40 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 23ms 24 0ms 4ms 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 1ms 1ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 4ms 4ms 07 1 2ms 2ms 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 3ms 3ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 4ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 4ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-09-29 06:48:51 Duration: 4ms 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-09-29 18:49:33 Duration: 3ms 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-09-29 07:48:55 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 13ms 24 0ms 2ms 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 1ms 1ms 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 2ms 2ms 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 2ms 2ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 38ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 38ms - 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-09-29 07:00:44 Duration: 2ms 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-09-29 19:02:05 Duration: 2ms 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-09-29 00:00:23 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
9 3ms 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: 8ms - Times executed: 216 ]
[ Application: [unknown] - Total duration: 8ms - Times executed: 216 ]
-
set session statement_timeout to 120000;
Date: 2025-09-29 11:49: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-09-29 17:49:30 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-09-29 07:45:50 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
10 1ms 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: 4ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 4ms - Times executed: 48 ]
-
set session statement_timeout to 60000;
Date: 2025-09-29 16:49:26 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-09-29 04:18:42 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-09-29 14:19:17 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-09-29 05:00:34 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-09-29 14:01: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-09-29 17:01:57 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