-
Global information
- Generated on Tue Nov 4 09:07:17 2025
- Log file: ././A3D-RND-REF/y=2025/m=11/d=03/h=00/m=00/PT1H.log, ..., ././A3D-RND-REF/y=2025/m=11/d=03/h=23/m=00/PT1H.log
- Parsed 41,546 log entries in 5m46s
- Log start from 2025-11-03 00:00:23 to 2025-11-03 23:59:56
-
Overview
Global Stats
- 13 Number of unique normalized queries
- 9,606 Number of queries
- 30s811ms Total query duration
- 2025-11-03 00:00:02 First query
- 2025-11-03 23:59:56 Last query
- 9 queries/s at 2025-11-03 16:26:37 Query peak
- 30s811ms Total query duration
- 14s777ms Prepare/parse total duration
- 13s479ms Bind total duration
- 2s553ms 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
- 0 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 3,121 Total number of sessions
- 2 sessions at 2025-11-03 16:36:46 Session peak
- 17h7m58s Total duration of sessions
- 19s762ms Average duration of sessions
- 3 Average queries per session
- 9ms Average queries duration per session
- 19s752ms Average idle time per session
- 3,122 Total number of connections
- 2 connections/s at 2025-11-03 15:06:30 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 9 queries/s Query Peak
- 2025-11-03 16:26:37 Date
SELECT Traffic
Key values
- 4 queries/s Query Peak
- 2025-11-03 04:20:45 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 2 queries/s Query Peak
- 2025-11-03 16:26:37 Date
Queries duration
Key values
- 30s811ms 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) Nov 03 00 400 0ms 2ms 0ms 2ms 4ms 4ms 01 401 0ms 2ms 0ms 3ms 4ms 5ms 02 400 0ms 2ms 0ms 3ms 3ms 5ms 03 400 0ms 3ms 0ms 3ms 4ms 5ms 04 400 0ms 2ms 0ms 3ms 3ms 6ms 05 400 0ms 3ms 0ms 3ms 4ms 4ms 06 400 0ms 2ms 0ms 2ms 3ms 5ms 07 400 0ms 4ms 0ms 4ms 6ms 6ms 08 400 0ms 2ms 0ms 2ms 5ms 5ms 09 402 0ms 4ms 0ms 3ms 4ms 5ms 10 400 0ms 1ms 0ms 2ms 3ms 5ms 11 400 0ms 1ms 0ms 2ms 3ms 5ms 12 400 0ms 2ms 0ms 2ms 3ms 5ms 13 401 0ms 2ms 0ms 3ms 3ms 5ms 14 400 0ms 2ms 0ms 2ms 3ms 5ms 15 400 0ms 3ms 0ms 3ms 3ms 5ms 16 400 0ms 10ms 0ms 3ms 4ms 10ms 17 400 0ms 3ms 0ms 3ms 4ms 4ms 18 400 0ms 2ms 0ms 3ms 4ms 5ms 19 400 0ms 4ms 0ms 3ms 4ms 5ms 20 400 0ms 2ms 0ms 2ms 3ms 4ms 21 400 0ms 2ms 0ms 2ms 3ms 5ms 22 402 0ms 2ms 0ms 3ms 3ms 3ms 23 400 0ms 3ms 0ms 2ms 3ms 4ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Nov 03 00 138 0 0ms 1ms 1ms 2ms 01 138 0 0ms 0ms 1ms 2ms 02 138 0 0ms 1ms 1ms 2ms 03 138 0 0ms 1ms 1ms 2ms 04 138 0 0ms 0ms 1ms 2ms 05 138 0 0ms 0ms 1ms 2ms 06 138 0 0ms 1ms 1ms 2ms 07 138 0 0ms 1ms 1ms 2ms 08 138 0 0ms 1ms 1ms 2ms 09 139 0 0ms 1ms 1ms 2ms 10 138 0 0ms 0ms 1ms 2ms 11 138 0 0ms 1ms 1ms 2ms 12 138 0 0ms 1ms 1ms 2ms 13 138 0 0ms 1ms 1ms 2ms 14 138 0 0ms 1ms 1ms 2ms 15 138 0 0ms 1ms 1ms 2ms 16 138 0 0ms 1ms 1ms 2ms 17 138 0 0ms 1ms 1ms 2ms 18 138 0 0ms 1ms 1ms 2ms 19 138 0 0ms 1ms 1ms 3ms 20 138 0 0ms 1ms 1ms 2ms 21 138 0 0ms 1ms 1ms 2ms 22 139 0 0ms 1ms 1ms 2ms 23 138 0 0ms 1ms 1ms 2ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Nov 03 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 Nov 03 00 268 272 1.01 103.88% 01 268 272 1.01 103.88% 02 268 272 1.01 103.88% 03 268 272 1.01 103.88% 04 268 272 1.01 103.88% 05 268 272 1.01 103.88% 06 268 272 1.01 103.88% 07 268 272 1.01 103.88% 08 268 272 1.01 103.88% 09 270 274 1.01 103.85% 10 268 272 1.01 103.88% 11 268 272 1.01 103.88% 12 268 272 1.01 103.88% 13 268 272 1.01 103.88% 14 268 272 1.01 103.88% 15 268 272 1.01 103.88% 16 268 272 1.01 103.88% 17 268 272 1.01 103.88% 18 268 272 1.01 103.88% 19 268 272 1.01 103.88% 20 268 272 1.01 103.88% 21 268 272 1.01 103.88% 22 270 274 1.01 103.85% 23 268 272 1.01 103.88% Day Hour Count Average / Second Nov 03 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 130 0.04/s 07 130 0.04/s 08 130 0.04/s 09 131 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 130 0.04/s 19 130 0.04/s 20 130 0.04/s 21 130 0.04/s 22 131 0.04/s 23 130 0.04/s Day Hour Count Average Duration Average idle time Nov 03 00 130 19s760ms 19s759ms 01 130 19s762ms 19s762ms 02 130 19s761ms 19s761ms 03 130 19s761ms 19s760ms 04 130 19s762ms 19s761ms 05 131 19s760ms 19s759ms 06 130 19s760ms 19s759ms 07 130 19s761ms 19s760ms 08 130 19s762ms 19s761ms 09 130 19s762ms 19s762ms 10 130 19s760ms 19s759ms 11 130 19s766ms 19s765ms 12 130 19s761ms 19s760ms 13 130 19s760ms 19s759ms 14 130 19s761ms 19s760ms 15 129 19s760ms 19s760ms 16 130 19s764ms 19s763ms 17 130 19s769ms 19s768ms 18 131 19s763ms 19s762ms 19 130 19s762ms 19s761ms 20 130 19s769ms 19s768ms 21 130 19s762ms 19s761ms 22 130 19s757ms 19s756ms 23 130 19s758ms 19s757ms -
Connections
Established Connections
Key values
- 2 connections Connection Peak
- 2025-11-03 15:06:30 Date
Connections per database
Key values
- azure_sys Main Database
- 3,122 connections Total
Connections per user
Key values
- azuresu Main User
- 3,122 connections Total
-
Sessions
Simultaneous sessions
Key values
- 2 sessions Session Peak
- 2025-11-03 16:36:46 Date
Histogram of session times
Key values
- 3,073 1000-30000ms duration
Sessions per database
Key values
- azure_sys Main Database
- 3,121 sessions Total
Sessions per user
Key values
- azuresu Main User
- 3,121 sessions Total
Sessions per host
Key values
- 169.254.128.1 Main Host
- 3,121 sessions Total
-
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Nov 03 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
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 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 Nov 03 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 0 21 0 0 22 0 0 23 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 3,314 Total read queries
- 2,882 Total write queries
Queries by database
Key values
- azure_sys Main database
- 9,606 Requests
- 2s553ms (azure_sys)
- Main time consuming database
Queries by user
Key values
- azuresu Main user
- 9,606 Requests
User Request type Count Duration azuresu Total 9,606 2s553ms cte 2,882 1s701ms others 3,410 357ms select 3,314 494ms Duration by user
Key values
- 2s553ms (azuresu) Main time consuming user
User Request type Count Duration azuresu Total 9,606 2s553ms cte 2,882 1s701ms others 3,410 357ms select 3,314 494ms Queries by host
Key values
- 169.254.128.1 Main host
- 9,606 Requests
- 2s553ms (169.254.128.1)
- Main time consuming host
Queries by application
Key values
- [unknown] Main application
- 9,606 Requests
- 2s553ms ([unknown])
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-11-03 17:08:29 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 8,962 0-1ms duration
Slowest individual queries
Rank Duration Query 1 10ms 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-11-03 16:43:41 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
2 4ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';[ Date: 2025-11-03 19:16:53 - 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-11-03 09:35:10 - 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-11-03 07:36:17 - 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-11-03 05:42:03 - 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-11-03 15:04:57 - 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-11-03 19:15:08 - 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-11-03 07:45:04 - 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-11-03 23:08:46 - 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-11-03 17:58:07 - 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-11-03 03:47:18 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
12 3ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-11-03 07:49:12 - 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-11-03 17:55:01 - 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-11-03 07:43:31 - 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-11-03 15:20:27 - 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-11-03 07:27:30 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
17 2ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;[ Date: 2025-11-03 21:27:00 - 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-11-03 00:03:29 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
19 2ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-11-03 00:16:25 - 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-11-03 04:51:55 - 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 1s699ms 2,786 0ms 10ms 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 Nov 03 01 116 68ms 0ms 02 116 72ms 0ms 03 116 63ms 0ms 04 116 69ms 0ms 05 116 68ms 0ms 06 116 76ms 0ms 07 116 64ms 0ms 08 116 82ms 0ms 09 116 73ms 0ms 10 117 74ms 0ms 11 116 70ms 0ms 12 116 66ms 0ms 13 116 69ms 0ms 14 116 69ms 0ms 15 116 67ms 0ms 16 116 77ms 0ms 17 116 72ms 0ms 18 116 71ms 0ms 19 116 71ms 0ms 20 116 76ms 0ms 21 116 64ms 0ms 22 116 66ms 0ms 23 117 71ms 0ms 00 116 69ms 0ms [ User: azuresu - Total duration: 1s699ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s699ms - 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-11-03 16:43:41 Duration: 10ms 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-11-03 09:35:10 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-11-03 07:36:17 Duration: 4ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 343ms 288 0ms 4ms 1ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Nov 03 01 12 14ms 1ms 02 12 14ms 1ms 03 12 15ms 1ms 04 12 14ms 1ms 05 12 13ms 1ms 06 12 13ms 1ms 07 12 15ms 1ms 08 12 13ms 1ms 09 12 14ms 1ms 10 12 14ms 1ms 11 12 13ms 1ms 12 12 14ms 1ms 13 12 13ms 1ms 14 12 13ms 1ms 15 12 14ms 1ms 16 12 13ms 1ms 17 12 14ms 1ms 18 12 13ms 1ms 19 12 13ms 1ms 20 12 16ms 1ms 21 12 14ms 1ms 22 12 13ms 1ms 23 12 14ms 1ms 00 12 14ms 1ms [ User: azuresu - Total duration: 343ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 343ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-03 19:16:53 Duration: 4ms 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-11-03 06:31:00 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-11-03 20:41:57 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 311ms 2,978 0ms 0ms 0ms discard all;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Nov 03 01 124 12ms 0ms 02 125 12ms 0ms 03 124 12ms 0ms 04 124 13ms 0ms 05 124 12ms 0ms 06 124 13ms 0ms 07 124 12ms 0ms 08 124 12ms 0ms 09 124 13ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 124 12ms 0ms 13 124 12ms 0ms 14 125 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 12ms 0ms 19 124 12ms 0ms 20 124 13ms 0ms 21 124 12ms 0ms 22 124 12ms 0ms 23 124 13ms 0ms 00 124 12ms 0ms [ User: azuresu - Total duration: 311ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 311ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-11-03 14:01:32 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-03 09:34:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-03 19:19:57 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
4 58ms 48 0ms 2ms 1ms select schemaname, sum(n_live_tup) as n_live_tup, sum(n_dead_tup) as n_dead_tup, sum(seq_scan) as seq_scan, sum(seq_tup_read) as seq_tup_read, sum(idx_scan) as idx_scan, sum(idx_tup_fetch) as idx_tup_fetch, sum(n_tup_ins) as n_tup_ins, sum(n_tup_upd) as n_tup_upd, sum(n_tup_del) as n_tup_del, sum(n_tup_hot_upd) as n_tup_hot_upd, sum(n_mod_since_analyze) as n_mod_since_analyze, sum(vacuum_count) as vacuum_count, sum(autovacuum_count) as autovacuum_count, sum(analyze_count) as analyze_count, sum(autoanalyze_count) as autoanalyze_count, count(relid) as tables_counter, sum( case when last_vacuum is not null then ? else ? end)::bigint as tables_vacuumed, sum( case when last_autovacuum is not null then ? else ? end)::bigint as tables_autovacuumed, sum( case when last_analyze is not null then ? else ? end)::bigint as tables_analyzed, sum( case when last_autoanalyze is not null then ? else ? end)::bigint as tables_autoanalyzed from pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Nov 03 01 2 2ms 1ms 02 2 2ms 1ms 03 2 1ms 0ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 2ms 1ms 08 2 3ms 1ms 09 2 2ms 1ms 10 2 2ms 1ms 11 2 2ms 1ms 12 2 2ms 1ms 13 2 2ms 1ms 14 2 3ms 1ms 15 2 2ms 1ms 16 2 2ms 1ms 17 2 2ms 1ms 18 2 2ms 1ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 2ms 1ms 00 2 2ms 1ms [ User: azuresu - Total duration: 58ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 58ms - 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-11-03 07:50:58 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-11-03 13:51:20 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-11-03 15:21:26 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 35ms 96 0ms 2ms 0ms 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 Nov 03 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 4ms 1ms 09 4 1ms 0ms 10 4 2ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms 00 4 1ms 0ms [ User: azuresu - Total duration: 35ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 35ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-11-03 07:41:18 Duration: 2ms 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-11-03 09:56:29 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-11-03 07:56:22 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
6 34ms 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 #6
Day Hour Count Duration Avg duration Nov 03 01 116 1ms 0ms 02 116 1ms 0ms 03 116 1ms 0ms 04 116 2ms 0ms 05 116 2ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 117 1ms 0ms 11 116 1ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 116 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 117 1ms 0ms 00 116 2ms 0ms [ User: azuresu - Total duration: 34ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 34ms - 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-11-03 23:37:43 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-11-03 03:34:23 Duration: 0ms 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-11-03 06:06:21 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
7 27ms 24 0ms 1ms 1ms select name as parameter, setting as value, min_val as minimum_value, max_val as maximum_value, reset_val as reset_value, pending_restart as pending_restart, unit as unit, sourcefile as source_file from pg_settings where name in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Nov 03 01 1 1ms 1ms 02 1 1ms 1ms 03 1 1ms 1ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 1ms 1ms 10 1 1ms 1ms 11 1 0ms 0ms 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 0ms 0ms 19 1 1ms 1ms 20 1 1ms 1ms 21 1 1ms 1ms 22 1 0ms 0ms 23 1 1ms 1ms 00 1 1ms 1ms [ User: azuresu - Total duration: 27ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 27ms - Times executed: 24 ]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 07:20:56 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 02:20:38 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 13:21:18 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
8 24ms 24 0ms 2ms 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 #8
Day Hour Count Duration Avg duration Nov 03 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 1ms 1ms 07 1 0ms 0ms 08 1 1ms 1ms 09 1 1ms 1ms 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 1ms 1ms 19 1 1ms 1ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 2ms 2ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 24ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 24ms - 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-11-03 21:27:00 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-11-03 07:26:05 Duration: 1ms 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-11-03 17:26:43 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 9ms 336 0ms 0ms 0ms set session statement_timeout to ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Nov 03 01 14 0ms 0ms 02 14 0ms 0ms 03 14 0ms 0ms 04 14 0ms 0ms 05 14 0ms 0ms 06 14 0ms 0ms 07 14 0ms 0ms 08 14 0ms 0ms 09 14 0ms 0ms 10 14 0ms 0ms 11 14 0ms 0ms 12 14 0ms 0ms 13 14 0ms 0ms 14 14 0ms 0ms 15 14 0ms 0ms 16 14 0ms 0ms 17 14 0ms 0ms 18 14 0ms 0ms 19 14 0ms 0ms 20 14 0ms 0ms 21 14 0ms 0ms 22 14 0ms 0ms 23 14 0ms 0ms 00 14 0ms 0ms [ User: azuresu - Total duration: 9ms - Times executed: 336 ]
[ Application: [unknown] - Total duration: 9ms - Times executed: 336 ]
-
set session statement_timeout to 60000;
Date: 2025-11-03 06:50:54 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-11-03 16:51:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-11-03 21:42:01 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 3ms 24 0ms 0ms 0ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Nov 03 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 00 1 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-11-03 08:21:00 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-11-03 18:21:36 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-11-03 04:20:45 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 2ms 96 0ms 0ms 0ms select start_time, end_time, user_id, db_id, query_id, event_type, event, calls from query_store.pgms_wait_sampling_view where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Nov 03 01 4 0ms 0ms 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 [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 18:11:47 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-11-03 05:40:57 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-11-03 08:56:16 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
12 2ms 96 0ms 0ms 0ms with emit_query_text_settings as ( select coalesce((current_setting(?, true)), ?) as emit_query_text, coalesce((current_setting(?, true)), ?) as capture_to_local_storage ) 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, case when (emit_query_text_settings.emit_query_text = ? and emit_query_text_settings.capture_to_local_storage = ?) then query_sql_text else ? end as query_text from query_store.qs_view as qsv, emit_query_text_settings where qsv.end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Nov 03 01 4 0ms 0ms 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 [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 03:10:49 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 16:26:37 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 16:56:40 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
13 1ms 24 0ms 0ms 0ms select ? as parameter, has_database_privilege(?, ?, ?) as value union all select ? as parameter, has_schema_privilege(?, ?, ?) as value;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Nov 03 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 00 1 0ms 0ms [ User: azuresu - Total duration: 1ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 1ms - Times executed: 24 ]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 13:21:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 20:21:44 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 09:21:04 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 311ms 0ms 0ms 0ms discard all;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Nov 03 01 124 12ms 0ms 02 125 12ms 0ms 03 124 12ms 0ms 04 124 13ms 0ms 05 124 12ms 0ms 06 124 13ms 0ms 07 124 12ms 0ms 08 124 12ms 0ms 09 124 13ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 124 12ms 0ms 13 124 12ms 0ms 14 125 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 12ms 0ms 19 124 12ms 0ms 20 124 13ms 0ms 21 124 12ms 0ms 22 124 12ms 0ms 23 124 13ms 0ms 00 124 12ms 0ms [ User: azuresu - Total duration: 311ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 311ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-11-03 14:01:32 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-03 09:34:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-03 19:19:57 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
2 2,786 1s699ms 0ms 10ms 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 Nov 03 01 116 68ms 0ms 02 116 72ms 0ms 03 116 63ms 0ms 04 116 69ms 0ms 05 116 68ms 0ms 06 116 76ms 0ms 07 116 64ms 0ms 08 116 82ms 0ms 09 116 73ms 0ms 10 117 74ms 0ms 11 116 70ms 0ms 12 116 66ms 0ms 13 116 69ms 0ms 14 116 69ms 0ms 15 116 67ms 0ms 16 116 77ms 0ms 17 116 72ms 0ms 18 116 71ms 0ms 19 116 71ms 0ms 20 116 76ms 0ms 21 116 64ms 0ms 22 116 66ms 0ms 23 117 71ms 0ms 00 116 69ms 0ms [ User: azuresu - Total duration: 1s699ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s699ms - 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-11-03 16:43:41 Duration: 10ms 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-11-03 09:35:10 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-11-03 07:36:17 Duration: 4ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 2,786 34ms 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 Nov 03 01 116 1ms 0ms 02 116 1ms 0ms 03 116 1ms 0ms 04 116 2ms 0ms 05 116 2ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 117 1ms 0ms 11 116 1ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 116 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 117 1ms 0ms 00 116 2ms 0ms [ User: azuresu - Total duration: 34ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 34ms - 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-11-03 23:37:43 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-11-03 03:34:23 Duration: 0ms 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-11-03 06:06:21 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
4 336 9ms 0ms 0ms 0ms set session statement_timeout to ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Nov 03 01 14 0ms 0ms 02 14 0ms 0ms 03 14 0ms 0ms 04 14 0ms 0ms 05 14 0ms 0ms 06 14 0ms 0ms 07 14 0ms 0ms 08 14 0ms 0ms 09 14 0ms 0ms 10 14 0ms 0ms 11 14 0ms 0ms 12 14 0ms 0ms 13 14 0ms 0ms 14 14 0ms 0ms 15 14 0ms 0ms 16 14 0ms 0ms 17 14 0ms 0ms 18 14 0ms 0ms 19 14 0ms 0ms 20 14 0ms 0ms 21 14 0ms 0ms 22 14 0ms 0ms 23 14 0ms 0ms 00 14 0ms 0ms [ User: azuresu - Total duration: 9ms - Times executed: 336 ]
[ Application: [unknown] - Total duration: 9ms - Times executed: 336 ]
-
set session statement_timeout to 60000;
Date: 2025-11-03 06:50:54 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-11-03 16:51:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-11-03 21:42:01 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 288 343ms 0ms 4ms 1ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Nov 03 01 12 14ms 1ms 02 12 14ms 1ms 03 12 15ms 1ms 04 12 14ms 1ms 05 12 13ms 1ms 06 12 13ms 1ms 07 12 15ms 1ms 08 12 13ms 1ms 09 12 14ms 1ms 10 12 14ms 1ms 11 12 13ms 1ms 12 12 14ms 1ms 13 12 13ms 1ms 14 12 13ms 1ms 15 12 14ms 1ms 16 12 13ms 1ms 17 12 14ms 1ms 18 12 13ms 1ms 19 12 13ms 1ms 20 12 16ms 1ms 21 12 14ms 1ms 22 12 13ms 1ms 23 12 14ms 1ms 00 12 14ms 1ms [ User: azuresu - Total duration: 343ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 343ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-03 19:16:53 Duration: 4ms 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-11-03 06:31:00 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-11-03 20:41:57 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 96 35ms 0ms 2ms 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 Nov 03 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 4ms 1ms 09 4 1ms 0ms 10 4 2ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms 00 4 1ms 0ms [ User: azuresu - Total duration: 35ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 35ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-11-03 07:41:18 Duration: 2ms 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-11-03 09:56:29 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-11-03 07:56:22 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
7 96 2ms 0ms 0ms 0ms select start_time, end_time, user_id, db_id, query_id, event_type, event, calls from query_store.pgms_wait_sampling_view where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Nov 03 01 4 0ms 0ms 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 [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 18:11:47 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-11-03 05:40:57 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-11-03 08:56:16 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
8 96 2ms 0ms 0ms 0ms with emit_query_text_settings as ( select coalesce((current_setting(?, true)), ?) as emit_query_text, coalesce((current_setting(?, true)), ?) as capture_to_local_storage ) 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, case when (emit_query_text_settings.emit_query_text = ? and emit_query_text_settings.capture_to_local_storage = ?) then query_sql_text else ? end as query_text from query_store.qs_view as qsv, emit_query_text_settings where qsv.end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Nov 03 01 4 0ms 0ms 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 [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 03:10:49 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 16:26:37 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 16:56:40 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 48 58ms 0ms 2ms 1ms select schemaname, sum(n_live_tup) as n_live_tup, sum(n_dead_tup) as n_dead_tup, sum(seq_scan) as seq_scan, sum(seq_tup_read) as seq_tup_read, sum(idx_scan) as idx_scan, sum(idx_tup_fetch) as idx_tup_fetch, sum(n_tup_ins) as n_tup_ins, sum(n_tup_upd) as n_tup_upd, sum(n_tup_del) as n_tup_del, sum(n_tup_hot_upd) as n_tup_hot_upd, sum(n_mod_since_analyze) as n_mod_since_analyze, sum(vacuum_count) as vacuum_count, sum(autovacuum_count) as autovacuum_count, sum(analyze_count) as analyze_count, sum(autoanalyze_count) as autoanalyze_count, count(relid) as tables_counter, sum( case when last_vacuum is not null then ? else ? end)::bigint as tables_vacuumed, sum( case when last_autovacuum is not null then ? else ? end)::bigint as tables_autovacuumed, sum( case when last_analyze is not null then ? else ? end)::bigint as tables_analyzed, sum( case when last_autoanalyze is not null then ? else ? end)::bigint as tables_autoanalyzed from pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Nov 03 01 2 2ms 1ms 02 2 2ms 1ms 03 2 1ms 0ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 2ms 1ms 08 2 3ms 1ms 09 2 2ms 1ms 10 2 2ms 1ms 11 2 2ms 1ms 12 2 2ms 1ms 13 2 2ms 1ms 14 2 3ms 1ms 15 2 2ms 1ms 16 2 2ms 1ms 17 2 2ms 1ms 18 2 2ms 1ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 2ms 1ms 00 2 2ms 1ms [ User: azuresu - Total duration: 58ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 58ms - 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-11-03 07:50:58 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-11-03 13:51:20 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-11-03 15:21:26 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 24 27ms 0ms 1ms 1ms select name as parameter, setting as value, min_val as minimum_value, max_val as maximum_value, reset_val as reset_value, pending_restart as pending_restart, unit as unit, sourcefile as source_file from pg_settings where name in (...);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Nov 03 01 1 1ms 1ms 02 1 1ms 1ms 03 1 1ms 1ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 1ms 1ms 10 1 1ms 1ms 11 1 0ms 0ms 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 0ms 0ms 19 1 1ms 1ms 20 1 1ms 1ms 21 1 1ms 1ms 22 1 0ms 0ms 23 1 1ms 1ms 00 1 1ms 1ms [ User: azuresu - Total duration: 27ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 27ms - Times executed: 24 ]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 07:20:56 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 02:20:38 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 13:21:18 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 24 24ms 0ms 2ms 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 #11
Day Hour Count Duration Avg duration Nov 03 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 1ms 1ms 07 1 0ms 0ms 08 1 1ms 1ms 09 1 1ms 1ms 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 1ms 1ms 19 1 1ms 1ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 2ms 2ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 24ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 24ms - 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-11-03 21:27:00 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-11-03 07:26:05 Duration: 1ms 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-11-03 17:26:43 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
12 24 3ms 0ms 0ms 0ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Nov 03 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 00 1 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-11-03 08:21:00 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-11-03 18:21:36 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-11-03 04:20:45 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
13 24 1ms 0ms 0ms 0ms select ? as parameter, has_database_privilege(?, ?, ?) as value union all select ? as parameter, has_schema_privilege(?, ?, ?) as value;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Nov 03 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 00 1 0ms 0ms [ User: azuresu - Total duration: 1ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 1ms - Times executed: 24 ]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 13:21:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 20:21:44 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 09:21:04 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 2ms 1ms 48 58ms 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 #1
Day Hour Count Duration Avg duration Nov 03 01 2 2ms 1ms 02 2 2ms 1ms 03 2 1ms 0ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 2ms 1ms 08 2 3ms 1ms 09 2 2ms 1ms 10 2 2ms 1ms 11 2 2ms 1ms 12 2 2ms 1ms 13 2 2ms 1ms 14 2 3ms 1ms 15 2 2ms 1ms 16 2 2ms 1ms 17 2 2ms 1ms 18 2 2ms 1ms 19 2 2ms 1ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 2ms 1ms 00 2 2ms 1ms [ User: azuresu - Total duration: 58ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 58ms - 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-11-03 07:50:58 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-11-03 13:51:20 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-11-03 15:21:26 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 0ms 4ms 1ms 288 343ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Nov 03 01 12 14ms 1ms 02 12 14ms 1ms 03 12 15ms 1ms 04 12 14ms 1ms 05 12 13ms 1ms 06 12 13ms 1ms 07 12 15ms 1ms 08 12 13ms 1ms 09 12 14ms 1ms 10 12 14ms 1ms 11 12 13ms 1ms 12 12 14ms 1ms 13 12 13ms 1ms 14 12 13ms 1ms 15 12 14ms 1ms 16 12 13ms 1ms 17 12 14ms 1ms 18 12 13ms 1ms 19 12 13ms 1ms 20 12 16ms 1ms 21 12 14ms 1ms 22 12 13ms 1ms 23 12 14ms 1ms 00 12 14ms 1ms [ User: azuresu - Total duration: 343ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 343ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-03 19:16:53 Duration: 4ms 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-11-03 06:31:00 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-11-03 20:41:57 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 0ms 1ms 1ms 24 27ms select name as parameter, setting as value, min_val as minimum_value, max_val as maximum_value, reset_val as reset_value, pending_restart as pending_restart, unit as unit, sourcefile as source_file from pg_settings where name in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Nov 03 01 1 1ms 1ms 02 1 1ms 1ms 03 1 1ms 1ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 1ms 1ms 10 1 1ms 1ms 11 1 0ms 0ms 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 0ms 0ms 19 1 1ms 1ms 20 1 1ms 1ms 21 1 1ms 1ms 22 1 0ms 0ms 23 1 1ms 1ms 00 1 1ms 1ms [ User: azuresu - Total duration: 27ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 27ms - Times executed: 24 ]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 07:20:56 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 02:20:38 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 13:21:18 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
4 0ms 2ms 1ms 24 24ms select start_time, end_time, querycount from query_stats.pgms_stats_query_counts where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Nov 03 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 1ms 1ms 07 1 0ms 0ms 08 1 1ms 1ms 09 1 1ms 1ms 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 1ms 1ms 19 1 1ms 1ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 2ms 2ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 24ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 24ms - 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-11-03 21:27:00 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-11-03 07:26:05 Duration: 1ms 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-11-03 17:26:43 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 0ms 10ms 0ms 2,786 1s699ms 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 #5
Day Hour Count Duration Avg duration Nov 03 01 116 68ms 0ms 02 116 72ms 0ms 03 116 63ms 0ms 04 116 69ms 0ms 05 116 68ms 0ms 06 116 76ms 0ms 07 116 64ms 0ms 08 116 82ms 0ms 09 116 73ms 0ms 10 117 74ms 0ms 11 116 70ms 0ms 12 116 66ms 0ms 13 116 69ms 0ms 14 116 69ms 0ms 15 116 67ms 0ms 16 116 77ms 0ms 17 116 72ms 0ms 18 116 71ms 0ms 19 116 71ms 0ms 20 116 76ms 0ms 21 116 64ms 0ms 22 116 66ms 0ms 23 117 71ms 0ms 00 116 69ms 0ms [ User: azuresu - Total duration: 1s699ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s699ms - 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-11-03 16:43:41 Duration: 10ms 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-11-03 09:35:10 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-11-03 07:36:17 Duration: 4ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 0ms 2ms 0ms 96 35ms 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 Nov 03 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 4ms 1ms 09 4 1ms 0ms 10 4 2ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms 00 4 1ms 0ms [ User: azuresu - Total duration: 35ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 35ms - Times executed: 96 ]
-
SET SESSION AUTHORIZATION DEFAULT; RESET ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD SEQUENCES; DISCARD TEMP;
Date: 2025-11-03 07:41:18 Duration: 2ms 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-11-03 09:56:29 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-11-03 07:56:22 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
7 0ms 0ms 0ms 24 3ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Nov 03 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 00 1 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-11-03 08:21:00 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-11-03 18:21:36 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-11-03 04:20:45 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
8 0ms 0ms 0ms 2,978 311ms discard all;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Nov 03 01 124 12ms 0ms 02 125 12ms 0ms 03 124 12ms 0ms 04 124 13ms 0ms 05 124 12ms 0ms 06 124 13ms 0ms 07 124 12ms 0ms 08 124 12ms 0ms 09 124 13ms 0ms 10 124 13ms 0ms 11 124 13ms 0ms 12 124 12ms 0ms 13 124 12ms 0ms 14 125 13ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 12ms 0ms 19 124 12ms 0ms 20 124 13ms 0ms 21 124 12ms 0ms 22 124 12ms 0ms 23 124 13ms 0ms 00 124 12ms 0ms [ User: azuresu - Total duration: 311ms - Times executed: 2978 ]
[ Application: [unknown] - Total duration: 311ms - Times executed: 2978 ]
-
DISCARD ALL;
Date: 2025-11-03 14:01:32 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-03 09:34:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-03 19:19:57 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
9 0ms 0ms 0ms 24 1ms select ? as parameter, has_database_privilege(?, ?, ?) as value union all select ? as parameter, has_schema_privilege(?, ?, ?) as value;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Nov 03 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 00 1 0ms 0ms [ User: azuresu - Total duration: 1ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 1ms - Times executed: 24 ]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 13:21:18 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 20:21:44 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 09:21:04 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 0ms 0ms 0ms 336 9ms set session statement_timeout to ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Nov 03 01 14 0ms 0ms 02 14 0ms 0ms 03 14 0ms 0ms 04 14 0ms 0ms 05 14 0ms 0ms 06 14 0ms 0ms 07 14 0ms 0ms 08 14 0ms 0ms 09 14 0ms 0ms 10 14 0ms 0ms 11 14 0ms 0ms 12 14 0ms 0ms 13 14 0ms 0ms 14 14 0ms 0ms 15 14 0ms 0ms 16 14 0ms 0ms 17 14 0ms 0ms 18 14 0ms 0ms 19 14 0ms 0ms 20 14 0ms 0ms 21 14 0ms 0ms 22 14 0ms 0ms 23 14 0ms 0ms 00 14 0ms 0ms [ User: azuresu - Total duration: 9ms - Times executed: 336 ]
[ Application: [unknown] - Total duration: 9ms - Times executed: 336 ]
-
set session statement_timeout to 60000;
Date: 2025-11-03 06:50:54 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-11-03 16:51:31 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
set session statement_timeout to 120000;
Date: 2025-11-03 21:42:01 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 0ms 0ms 0ms 96 2ms select start_time, end_time, user_id, db_id, query_id, event_type, event, calls from query_store.pgms_wait_sampling_view where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Nov 03 01 4 0ms 0ms 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 [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 18:11:47 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-11-03 05:40:57 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-11-03 08:56:16 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
12 0ms 0ms 0ms 96 2ms with emit_query_text_settings as ( select coalesce((current_setting(?, true)), ?) as emit_query_text, coalesce((current_setting(?, true)), ?) as capture_to_local_storage ) 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, case when (emit_query_text_settings.emit_query_text = ? and emit_query_text_settings.capture_to_local_storage = ?) then query_sql_text else ? end as query_text from query_store.qs_view as qsv, emit_query_text_settings where qsv.end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Nov 03 01 4 0ms 0ms 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 [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 03:10:49 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 16:26:37 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 16:56:40 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
13 0ms 1ms 0ms 2,786 34ms 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 #13
Day Hour Count Duration Avg duration Nov 03 01 116 1ms 0ms 02 116 1ms 0ms 03 116 1ms 0ms 04 116 2ms 0ms 05 116 2ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 117 1ms 0ms 11 116 1ms 0ms 12 116 1ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 1ms 0ms 16 116 1ms 0ms 17 116 1ms 0ms 18 116 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 117 1ms 0ms 00 116 2ms 0ms [ User: azuresu - Total duration: 34ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 34ms - 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-11-03 23:37:43 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-11-03 03:34:23 Duration: 0ms 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-11-03 06:06:21 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 13s533ms 2,786 3ms 15ms 4ms With slots_info AS ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Nov 03 01 116 548ms 4ms 02 116 545ms 4ms 03 116 555ms 4ms 04 116 555ms 4ms 05 116 562ms 4ms 06 116 562ms 4ms 07 116 559ms 4ms 08 116 634ms 5ms 09 116 576ms 4ms 10 117 572ms 4ms 11 116 551ms 4ms 12 116 545ms 4ms 13 116 553ms 4ms 14 116 557ms 4ms 15 116 561ms 4ms 16 116 565ms 4ms 17 116 563ms 4ms 18 116 557ms 4ms 19 116 558ms 4ms 20 116 564ms 4ms 21 116 559ms 4ms 22 116 581ms 5ms 23 117 569ms 4ms 00 116 572ms 4ms [ User: azuresu - Total duration: 1s699ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s699ms - Times executed: 2786 ]
-
With slots_info AS ( ;
Date: 2025-11-03 07:43:00 Duration: 15ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-03 04:40:33 Duration: 15ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-03 07:23:53 Duration: 13ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 756ms 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 30ms 0ms 01 116 30ms 0ms 02 116 30ms 0ms 03 116 29ms 0ms 04 116 30ms 0ms 05 116 29ms 0ms 06 116 32ms 0ms 07 116 29ms 0ms 08 116 32ms 0ms 09 117 28ms 0ms 10 116 37ms 0ms 11 116 30ms 0ms 12 116 32ms 0ms 13 116 29ms 0ms 14 116 30ms 0ms 15 116 31ms 0ms 16 116 29ms 0ms 17 116 33ms 0ms 18 116 33ms 0ms 19 116 32ms 0ms 20 116 34ms 0ms 21 116 36ms 0ms 22 117 32ms 0ms 23 116 30ms 0ms [ User: azuresu - Total duration: 34ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 34ms - 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-11-03 10:43:24 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-11-03 20:33:11 Duration: 2ms 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-11-03 14:43:45 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 177ms 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 6ms 0ms 01 12 6ms 0ms 02 12 6ms 0ms 03 12 7ms 0ms 04 12 6ms 0ms 05 12 6ms 0ms 06 12 7ms 0ms 07 12 21ms 1ms 08 12 6ms 0ms 09 12 6ms 0ms 10 12 6ms 0ms 11 12 6ms 0ms 12 12 7ms 0ms 13 12 6ms 0ms 14 12 6ms 0ms 15 12 6ms 0ms 16 12 6ms 0ms 17 12 6ms 0ms 18 12 6ms 0ms 19 12 6ms 0ms 20 12 6ms 0ms 21 12 7ms 0ms 22 12 6ms 0ms 23 12 6ms 0ms [ User: azuresu - Total duration: 343ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 343ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-03 07:46:09 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-11-03 07:41:08 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-11-03 07:31:06 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 163ms 96 1ms 11ms 1ms WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings 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 5ms 1ms 07 4 32ms 8ms 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 6ms 1ms 15 4 5ms 1ms 16 4 5ms 1ms 17 4 6ms 1ms 18 4 5ms 1ms 19 4 7ms 1ms 20 4 5ms 1ms 21 4 5ms 1ms 22 4 5ms 1ms 23 4 5ms 1ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 07:41:08 Duration: 11ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 07:26:05 Duration: 10ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 07:56:12 Duration: 8ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 82ms 48 1ms 17ms 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 2ms 1ms 02 2 2ms 1ms 03 2 2ms 1ms 04 2 3ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 19ms 9ms 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 3ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 2 3ms 1ms [ User: azuresu - Total duration: 58ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 58ms - 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-11-03 07:50:58 Duration: 17ms 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-11-03 04:50:47 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-11-03 23:51:56 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
6 27ms 96 0ms 0ms 0ms SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming prepare #6
Day Hour Count Duration Avg duration 00 4 1ms 0ms 01 4 1ms 0ms 02 4 1ms 0ms 03 4 1ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 1ms 0ms 08 4 1ms 0ms 09 4 1ms 0ms 10 4 1ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 1ms 0ms 15 4 1ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 13:11:27 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-11-03 17:41:44 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-11-03 08:56:16 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 8ms 24 0ms 1ms 0ms SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');Times Reported Time consuming prepare #7
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 1ms 1ms 23 1 0ms 0ms [ User: azuresu - Total duration: 27ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 27ms - Times executed: 24 ]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 22:21:51 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 18:21:36 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 16:21:29 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 7ms 24 0ms 1ms 0ms SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;Times Reported Time consuming prepare #8
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 0ms 0ms 08 1 1ms 1ms 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: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-11-03 08:21:00 Duration: 1ms 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-11-03 16:21:29 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-11-03 14:21:22 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
9 6ms 168 0ms 0ms 0ms set session statement_timeout to 120000;Times Reported Time consuming prepare #9
Day Hour Count Duration Avg duration 00 7 0ms 0ms 01 7 0ms 0ms 02 7 0ms 0ms 03 7 0ms 0ms 04 7 0ms 0ms 05 7 0ms 0ms 06 7 0ms 0ms 07 7 0ms 0ms 08 7 0ms 0ms 09 7 0ms 0ms 10 7 0ms 0ms 11 7 0ms 0ms 12 7 0ms 0ms 13 7 0ms 0ms 14 7 0ms 0ms 15 7 0ms 0ms 16 7 0ms 0ms 17 7 0ms 0ms 18 7 0ms 0ms 19 7 0ms 0ms 20 7 0ms 0ms 21 7 0ms 0ms 22 7 0ms 0ms 23 7 0ms 0ms [ User: azuresu - Total duration: 5ms - Times executed: 168 ]
[ Application: [unknown] - Total duration: 5ms - Times executed: 168 ]
-
set session statement_timeout to 120000;
Date: 2025-11-03 20:26:56 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-11-03 18:11:47 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-11-03 23:21:54 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
10 5ms 24 0ms 1ms 0ms SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;Times Reported Time consuming prepare #10
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 1ms 1ms 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: 1ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 1ms - Times executed: 24 ]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 08:21:01 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 00:20:31 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 09:21:04 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
11 4ms 24 0ms 0ms 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 #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: 24ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 24ms - 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-11-03 08:26:14 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-11-03 07:26:05 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-11-03 09:26:17 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
12 2ms 48 0ms 0ms 0ms set session statement_timeout to 60000;Times Reported Time consuming prepare #12
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: 2ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 48 ]
-
set session statement_timeout to 60000;
Date: 2025-11-03 16:51:31 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-11-03 09:51:06 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-11-03 01:50:36 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
13 1ms 24 0ms 0ms 0ms set session statement_timeout to 90000;Times Reported Time consuming prepare #13
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-11-03 07:26:05 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-11-03 20:26:56 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-11-03 17:26:43 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 12s402ms 2,786 3ms 18ms 4ms With slots_info AS ( ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Nov 03 01 116 513ms 4ms 02 116 512ms 4ms 03 116 498ms 4ms 04 116 523ms 4ms 05 116 512ms 4ms 06 116 516ms 4ms 07 116 512ms 4ms 08 116 553ms 4ms 09 116 513ms 4ms 10 117 494ms 4ms 11 116 511ms 4ms 12 116 501ms 4ms 13 116 507ms 4ms 14 116 514ms 4ms 15 116 528ms 4ms 16 116 532ms 4ms 17 116 509ms 4ms 18 116 521ms 4ms 19 116 520ms 4ms 20 116 524ms 4ms 21 116 516ms 4ms 22 116 513ms 4ms 23 117 516ms 4ms 00 116 533ms 4ms [ User: azuresu - Total duration: 1s699ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 1s699ms - Times executed: 2786 ]
-
With slots_info AS ( ;
Date: 2025-11-03 04:40:33 Duration: 18ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-03 23:18:35 Duration: 15ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-03 23:29:57 Duration: 12ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 365ms 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 bind #2
Day Hour Count Duration Avg duration 00 116 14ms 0ms 01 116 15ms 0ms 02 116 13ms 0ms 03 116 15ms 0ms 04 116 14ms 0ms 05 116 14ms 0ms 06 116 13ms 0ms 07 116 16ms 0ms 08 116 15ms 0ms 09 117 15ms 0ms 10 116 15ms 0ms 11 116 17ms 0ms 12 116 13ms 0ms 13 116 18ms 0ms 14 116 18ms 0ms 15 116 14ms 0ms 16 116 14ms 0ms 17 116 12ms 0ms 18 116 14ms 0ms 19 116 15ms 0ms 20 116 15ms 0ms 21 116 12ms 0ms 22 117 13ms 0ms 23 116 17ms 0ms [ User: azuresu - Total duration: 34ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 34ms - 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-11-03 13:08:39 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-11-03 23:38:14 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-11-03 14:25:40 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 357ms 96 2ms 67ms 3ms WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming bind #3
Day Hour Count Duration Avg duration 00 4 13ms 3ms 01 4 10ms 2ms 02 4 10ms 2ms 03 4 11ms 2ms 04 4 11ms 2ms 05 4 10ms 2ms 06 4 11ms 2ms 07 4 96ms 24ms 08 4 10ms 2ms 09 4 11ms 2ms 10 4 11ms 2ms 11 4 10ms 2ms 12 4 11ms 2ms 13 4 11ms 2ms 14 4 11ms 2ms 15 4 11ms 2ms 16 4 11ms 2ms 17 4 10ms 2ms 18 4 11ms 2ms 19 4 15ms 3ms 20 4 11ms 2ms 21 4 10ms 2ms 22 4 10ms 2ms 23 4 10ms 2ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 07:56:12 Duration: 67ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 07:41:08 Duration: 14ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
WITH emit_query_text_settings as ( SELECT COALESCE((current_setting('pg_qs.emit_query_text', true)), 'off') as emit_query_text, COALESCE((current_setting('pg_qs.capture_to_local_storage', true)), 'off') as capture_to_local_storage ) 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, CASE WHEN (emit_query_text_settings.emit_query_text = 'on' AND emit_query_text_settings.capture_to_local_storage = 'on') THEN query_sql_text ELSE '' END AS query_text FROM query_store.qs_view as qsv, emit_query_text_settings WHERE qsv.end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 07:26:05 Duration: 11ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 135ms 48 1ms 40ms 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 #4
Day Hour Count Duration Avg duration 00 2 3ms 1ms 01 2 3ms 1ms 02 2 3ms 1ms 03 2 4ms 2ms 04 2 4ms 2ms 05 2 4ms 2ms 06 2 4ms 2ms 07 2 42ms 21ms 08 2 3ms 1ms 09 2 4ms 2ms 10 2 4ms 2ms 11 2 3ms 1ms 12 2 4ms 2ms 13 2 4ms 2ms 14 2 3ms 1ms 15 2 4ms 2ms 16 2 4ms 2ms 17 2 3ms 1ms 18 2 4ms 2ms 19 2 4ms 2ms 20 2 4ms 2ms 21 2 3ms 1ms 22 2 3ms 1ms 23 2 3ms 1ms [ User: azuresu - Total duration: 58ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 58ms - 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-11-03 07:50:58 Duration: 40ms 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-11-03 19:21:40 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-11-03 16:51:31 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 127ms 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 #5
Day Hour Count Duration Avg duration 00 12 6ms 0ms 01 12 4ms 0ms 02 12 10ms 0ms 03 12 5ms 0ms 04 12 5ms 0ms 05 12 5ms 0ms 06 12 5ms 0ms 07 12 5ms 0ms 08 12 4ms 0ms 09 12 5ms 0ms 10 12 4ms 0ms 11 12 4ms 0ms 12 12 4ms 0ms 13 12 5ms 0ms 14 12 5ms 0ms 15 12 5ms 0ms 16 12 5ms 0ms 17 12 4ms 0ms 18 12 4ms 0ms 19 12 5ms 0ms 20 12 5ms 0ms 21 12 4ms 0ms 22 12 5ms 0ms 23 12 5ms 0ms [ User: azuresu - Total duration: 343ms - Times executed: 288 ]
[ Application: [unknown] - Total duration: 343ms - Times executed: 288 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-03 02:40:46 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-11-03 02:15:43 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-11-03 07:51:11 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
6 46ms 96 0ms 2ms 0ms SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 00 4 1ms 0ms 01 4 1ms 0ms 02 4 1ms 0ms 03 4 1ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 5ms 1ms 08 4 1ms 0ms 09 4 1ms 0ms 10 4 1ms 0ms 11 4 1ms 0ms 12 4 1ms 0ms 13 4 2ms 0ms 14 4 1ms 0ms 15 4 2ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 2ms 0ms 19 4 1ms 0ms 20 4 1ms 0ms 21 4 1ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-03 07:56:12 Duration: 2ms 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-11-03 07:26:05 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-11-03 07:41:08 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 19ms 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 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 1ms 1ms 08 1 4ms 4ms 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: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 24 ]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-11-03 08:21:00 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-11-03 07:20:56 Duration: 1ms 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-11-03 20:21:44 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 9ms 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 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 2ms 2ms 08 1 1ms 1ms 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: 24ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 24ms - 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-11-03 07:26: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-11-03 08:26:14 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-11-03 17:26:43 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
9 8ms 24 0ms 0ms 0ms SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');Times Reported Time consuming bind #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 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 27ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 27ms - Times executed: 24 ]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 08:21:00 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 11:21:11 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT name AS parameter, setting AS value, min_val AS minimum_value, max_val AS maximum_value, reset_val AS reset_value, pending_restart AS pending_restart, unit AS unit, sourcefile AS source_file FROM pg_settings WHERE name IN ('pgaudit.log', 'pgaudit.log_level', 'pgaudit.log_statement', 'pgaudit.log_statement_once', 'log_checkpoints', 'log_connections', 'log_disconnections', 'password_encryption', 'log_line_prefix', 'require_secure_transport', 'shared_preload_libraries');
Date: 2025-11-03 02:20:38 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
10 3ms 264 0ms 0ms 0ms set session statement_timeout to 120000;Times Reported Time consuming bind #10
Day Hour Count Duration Avg duration 00 11 0ms 0ms 01 11 0ms 0ms 02 11 0ms 0ms 03 11 0ms 0ms 04 11 0ms 0ms 05 11 0ms 0ms 06 11 0ms 0ms 07 11 0ms 0ms 08 11 0ms 0ms 09 11 0ms 0ms 10 11 0ms 0ms 11 11 0ms 0ms 12 11 0ms 0ms 13 11 0ms 0ms 14 11 0ms 0ms 15 11 0ms 0ms 16 11 0ms 0ms 17 11 0ms 0ms 18 11 0ms 0ms 19 11 0ms 0ms 20 11 0ms 0ms 21 11 0ms 0ms 22 11 0ms 0ms 23 11 0ms 0ms [ User: azuresu - Total duration: 7ms - Times executed: 264 ]
[ Application: [unknown] - Total duration: 7ms - Times executed: 264 ]
-
set session statement_timeout to 120000;
Date: 2025-11-03 21:27:00 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-11-03 14:21:22 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-11-03 13:41:28 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
11 3ms 24 0ms 0ms 0ms SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;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: 1ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 1ms - Times executed: 24 ]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 14:21:22 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 13:21:18 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT 'database_access_privilege' AS parameter, has_database_privilege('public', 'postgres', 'CONNECT') AS value UNION ALL SELECT 'schema_access_privilege' AS parameter, has_schema_privilege('public', 'public', 'USAGE') AS value;
Date: 2025-11-03 00:20:31 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
12 0ms 48 0ms 0ms 0ms set session statement_timeout to 60000;Times Reported Time consuming bind #12
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: 2ms - Times executed: 48 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 48 ]
-
set session statement_timeout to 60000;
Date: 2025-11-03 22:51:53 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-11-03 18:21:36 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-11-03 08:51:02 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
13 0ms 24 0ms 0ms 0ms set session statement_timeout to 90000;Times Reported Time consuming bind #13
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-11-03 20:26:56 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-11-03 09:26:17 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-11-03 11:26:22 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