-
Global information
- Generated on Mon Nov 10 09:10:03 2025
- Log file: ././A3D-RND-REF/y=2025/m=11/d=07/h=00/m=00/PT1H.log, ..., ././A3D-RND-REF/y=2025/m=11/d=07/h=23/m=00/PT1H.log
- Parsed 41,538 log entries in 7m57s
- Log start from 2025-11-07 00:00:11 to 2025-11-07 23:59:46
-
Overview
Global Stats
- 14 Number of unique normalized queries
- 9,604 Number of queries
- 31s246ms Total query duration
- 2025-11-07 00:00:11 First query
- 2025-11-07 23:59:56 Last query
- 9 queries/s at 2025-11-07 14:35:17 Query peak
- 31s246ms Total query duration
- 14s961ms Prepare/parse total duration
- 13s686ms Bind total duration
- 2s598ms Execute total duration
- 0 Number of events
- 0 Number of unique normalized events
- 0 Max number of times the same event was reported
- 0 Number of cancellation
- 0 Total number of automatic vacuums
- 1 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 3,122 Total number of sessions
- 3 sessions at 2025-11-07 19:53:32 Session peak
- 17h8m30s Total duration of sessions
- 19s766ms Average duration of sessions
- 3 Average queries per session
- 10ms Average queries duration per session
- 19s756ms Average idle time per session
- 3,121 Total number of connections
- 2 connections/s at 2025-11-07 17:30:31 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 9 queries/s Query Peak
- 2025-11-07 14:35:17 Date
SELECT Traffic
Key values
- 4 queries/s Query Peak
- 2025-11-07 18:27:17 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 2 queries/s Query Peak
- 2025-11-07 14:35:17 Date
Queries duration
Key values
- 31s246ms 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 07 00 400 0ms 2ms 0ms 2ms 3ms 4ms 01 400 0ms 4ms 0ms 2ms 3ms 5ms 02 400 0ms 2ms 0ms 3ms 3ms 4ms 03 400 0ms 3ms 0ms 2ms 3ms 4ms 04 402 0ms 3ms 0ms 3ms 3ms 4ms 05 400 0ms 2ms 0ms 3ms 4ms 4ms 06 400 0ms 2ms 0ms 3ms 4ms 5ms 07 400 0ms 11ms 0ms 4ms 5ms 12ms 08 401 0ms 2ms 0ms 2ms 3ms 4ms 09 399 0ms 2ms 0ms 3ms 3ms 4ms 10 399 0ms 2ms 0ms 2ms 4ms 4ms 11 400 0ms 2ms 0ms 2ms 3ms 4ms 12 400 0ms 2ms 0ms 3ms 4ms 4ms 13 400 0ms 2ms 0ms 3ms 4ms 6ms 14 400 0ms 2ms 0ms 3ms 3ms 4ms 15 400 0ms 2ms 0ms 3ms 4ms 4ms 16 400 0ms 3ms 0ms 3ms 4ms 6ms 17 402 0ms 4ms 0ms 3ms 3ms 5ms 18 400 0ms 1ms 0ms 2ms 3ms 3ms 19 400 0ms 3ms 0ms 2ms 3ms 7ms 20 400 0ms 3ms 0ms 2ms 3ms 6ms 21 400 0ms 2ms 0ms 3ms 3ms 4ms 22 401 0ms 2ms 0ms 2ms 3ms 4ms 23 400 0ms 2ms 0ms 3ms 3ms 4ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Nov 07 00 138 0 0ms 1ms 1ms 2ms 01 138 0 0ms 1ms 1ms 2ms 02 138 0 0ms 1ms 1ms 1ms 03 138 0 0ms 1ms 1ms 1ms 04 139 0 0ms 1ms 1ms 2ms 05 138 0 0ms 1ms 1ms 2ms 06 138 0 0ms 1ms 1ms 2ms 07 138 0 0ms 1ms 1ms 2ms 08 138 0 0ms 1ms 1ms 2ms 09 138 0 0ms 1ms 1ms 1ms 10 137 0 0ms 1ms 1ms 2ms 11 138 0 0ms 1ms 1ms 1ms 12 138 0 0ms 1ms 1ms 2ms 13 138 0 0ms 1ms 1ms 2ms 14 138 0 0ms 1ms 1ms 1ms 15 138 0 0ms 1ms 1ms 2ms 16 138 0 0ms 1ms 1ms 2ms 17 139 0 0ms 1ms 1ms 2ms 18 138 0 0ms 1ms 1ms 1ms 19 138 0 0ms 1ms 1ms 2ms 20 138 0 0ms 1ms 1ms 2ms 21 138 0 0ms 1ms 1ms 2ms 22 138 0 0ms 1ms 1ms 1ms 23 138 0 0ms 1ms 1ms 1ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Nov 07 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 07 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 270 274 1.01 103.85% 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 268 272 1.01 103.88% 10 267 271 1.01 103.89% 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 270 274 1.01 103.85% 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 268 272 1.01 103.88% 23 268 272 1.01 103.88% Day Hour Count Average / Second Nov 07 00 130 0.04/s 01 130 0.04/s 02 130 0.04/s 03 130 0.04/s 04 131 0.04/s 05 130 0.04/s 06 130 0.04/s 07 130 0.04/s 08 130 0.04/s 09 130 0.04/s 10 129 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 131 0.04/s 18 130 0.04/s 19 130 0.04/s 20 130 0.04/s 21 130 0.04/s 22 130 0.04/s 23 130 0.04/s Day Hour Count Average Duration Average idle time Nov 07 00 131 19s765ms 19s764ms 01 130 19s763ms 19s762ms 02 130 19s759ms 19s758ms 03 130 19s762ms 19s761ms 04 130 19s759ms 19s759ms 05 130 19s761ms 19s761ms 06 130 19s761ms 19s761ms 07 129 19s767ms 19s766ms 08 130 19s762ms 19s761ms 09 130 19s761ms 19s760ms 10 130 19s763ms 19s762ms 11 130 19s763ms 19s762ms 12 131 19s763ms 19s762ms 13 130 19s766ms 19s765ms 14 130 19s775ms 19s774ms 15 130 19s769ms 19s768ms 16 130 19s771ms 19s770ms 17 130 19s771ms 19s770ms 18 130 19s786ms 19s785ms 19 130 19s772ms 19s772ms 20 130 19s773ms 19s772ms 21 131 19s768ms 19s767ms 22 130 19s763ms 19s762ms 23 130 19s761ms 19s761ms -
Connections
Established Connections
Key values
- 2 connections Connection Peak
- 2025-11-07 17:30:31 Date
Connections per database
Key values
- azure_sys Main Database
- 3,121 connections Total
Connections per user
Key values
- azuresu Main User
- 3,121 connections Total
-
Sessions
Simultaneous sessions
Key values
- 3 sessions Session Peak
- 2025-11-07 19:53:32 Date
Histogram of session times
Key values
- 3,074 1000-30000ms duration
Sessions per database
Key values
- azure_sys Main Database
- 3,122 sessions Total
Sessions per user
Key values
- azuresu Main User
- 3,122 sessions Total
Sessions per host
Key values
- 169.254.128.1 Main Host
- 3,122 sessions Total
-
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Nov 07 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Analyzes per table
Key values
- query_stats.pgms_stats_query_counts (1) Main table analyzed (database azure_sys)
- 1 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Nov 07 00 0 0 01 0 0 02 0 0 03 0 1 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,313 Total read queries
- 2,882 Total write queries
Queries by database
Key values
- azure_sys Main database
- 9,604 Requests
- 2s598ms (azure_sys)
- Main time consuming database
Queries by user
Key values
- azuresu Main user
- 9,604 Requests
User Request type Count Duration azuresu Total 9,604 2s598ms cte 2,882 1s735ms others 3,409 357ms select 3,313 505ms Duration by user
Key values
- 2s598ms (azuresu) Main time consuming user
User Request type Count Duration azuresu Total 9,604 2s598ms cte 2,882 1s735ms others 3,409 357ms select 3,313 505ms Queries by host
Key values
- 169.254.128.1 Main host
- 9,604 Requests
- 2s598ms (169.254.128.1)
- Main time consuming host
Queries by application
Key values
- [unknown] Main application
- 9,604 Requests
- 2s598ms ([unknown])
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-11-07 11:10:14 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 8,965 0-1ms duration
Slowest individual queries
Rank Duration Query 1 11ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-11-07 07:16:58 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
2 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-07 01:25:59 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
3 4ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';[ Date: 2025-11-07 17:55:32 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
4 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-07 03:43:29 - 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-07 20:47:29 - 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-07 04:43:27 - 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-07 07:21:06 - 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-07 16:36:14 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
9 3ms 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-07 19:27:21 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
10 2ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';[ Date: 2025-11-07 10:45:00 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
11 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-07 11:48:51 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
12 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-07 03:20:14 - 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-07 09:21:32 - 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-07 16:15:34 - 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-07 20:40:15 - 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-07 13:45:09 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
17 2ms With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;[ Date: 2025-11-07 07:17:29 - Database: azure_sys - User: azuresu - Remote: 169.254.128.1 - Application: [unknown] - Bind query: yes ]
18 2ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';[ Date: 2025-11-07 19:30:41 - 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-07 07:49:00 - 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-07 08:23:38 - 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 1s732ms 2,785 0ms 11ms 0ms with slots_info as ( select slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end as wal_retention_from_restart_lsn, stat.replay_lsn, case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end as replay_lsn_else_restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name ( case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end) end as must_retain_wal_file, case when pg_is_in_recovery() then null else ( case when stat.replay_lsn is null then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end) end as wal_retention_from_replay_lsn from pg_catalog.pg_replication_slots slot left join pg_catalog.pg_stat_replication stat on slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( select * from slots_info where slot_type = ? and slot_name like ? or slot_name like ? ), read_replica_slot_info as ( select * from slots_info where slot_type = ? and slot_name not like ? and slot_name not like ? ) select ( select row_to_json(t1) logical_slots from ( select ( select count(*) as active from slots_info where slot_type = ? and active = true), ( select count(*) as inactive from slots_info where slot_type = ? and active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from slots_info where slot_type = ? order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( select row_to_json(t1) read_replica_slots from ( select ( select count(*) as active from read_replica_slot_info where active = true), ( select count(*) as inactive from read_replica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from read_replica_slot_info order by replay_lsn_else_restart_lsn limit ?) as t) as lagging_order) as t1), ( select row_to_json(t1) standby_and_walreplica_slots from ( select ( select count(*) as active from standby_and_walreplica_slot_info where active = true), ( select count(*) as inactive from standby_and_walreplica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( select row_to_json(t)::text as checkpoint_info from ( select ( select trunc(max(extract(epoch from current_timestamp - xact_start))) as max_age from pg_stat_activity) oldest_live_tx_age, trunc(extract(epoch from current_timestamp - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, to_char(checkpoint_time at time zone ?, ?) as checkpoint_time, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (checkpoint_lsn) end as checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( select cast(current_setting(?) as integer) as block_size) as sub_query) as t), ( select row_to_json(t)::text as archiver_info from ( select trunc(extract(epoch from current_timestamp - last_archived_time)) last_archival, (last_failed_wal is null or last_failed_wal <= last_archived_wal) is_archiving, trunc( case when archived_count = ? or extract(epoch from age(now(), stats_reset)) = ? then ? else cast(archived_count as numeric) * ? / extract(epoch from age(now(), stats_reset)) end) wals_archived_per_minute, last_archived_wal, to_char(last_archived_time at time zone ?, ?) as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( select row_to_json(t)::text as wal_upload_related_details from ( select ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) end as current), ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (flush_lsn) end as quorum_committed from slots_info where slot_type = ? and sync_state = ? order by flush_lsn desc limit ?), ( select cast(pg_catalog.current_setting(?) as boolean) as enforce_ha_quorom), ( select pg_catalog.current_setting(?) as synchronous_standby_names), ( select cast(pg_catalog.pg_is_in_recovery() as boolean) as pg_is_in_recovery)) as t), ( select to_char(pg_catalog.now() at time zone ?, ?)) as time_fetched;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Nov 07 01 116 66ms 0ms 02 116 72ms 0ms 03 116 67ms 0ms 04 116 70ms 0ms 05 117 70ms 0ms 06 116 71ms 0ms 07 116 74ms 0ms 08 116 89ms 0ms 09 116 70ms 0ms 10 116 75ms 0ms 11 116 70ms 0ms 12 116 73ms 0ms 13 116 71ms 0ms 14 116 76ms 0ms 15 116 77ms 0ms 16 116 67ms 0ms 17 116 73ms 0ms 18 117 68ms 0ms 19 116 64ms 0ms 20 116 67ms 0ms 21 116 78ms 0ms 22 116 72ms 0ms 23 116 71ms 0ms 00 115 69ms 0ms [ User: azuresu - Total duration: 1s732ms - Times executed: 2785 ]
[ Application: [unknown] - Total duration: 1s732ms - Times executed: 2785 ]
-
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-07 07:16:58 Duration: 11ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-11-07 01:25:59 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-07 03:43:29 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 349ms 287 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 07 01 12 15ms 1ms 02 12 13ms 1ms 03 12 14ms 1ms 04 12 14ms 1ms 05 12 14ms 1ms 06 12 14ms 1ms 07 12 14ms 1ms 08 12 15ms 1ms 09 12 14ms 1ms 10 12 14ms 1ms 11 11 15ms 1ms 12 12 14ms 1ms 13 12 14ms 1ms 14 12 14ms 1ms 15 12 13ms 1ms 16 12 15ms 1ms 17 12 14ms 1ms 18 12 17ms 1ms 19 12 14ms 1ms 20 12 15ms 1ms 21 12 13ms 1ms 22 12 14ms 1ms 23 12 14ms 1ms 00 12 13ms 1ms [ User: azuresu - Total duration: 349ms - Times executed: 287 ]
[ Application: [unknown] - Total duration: 349ms - Times executed: 287 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-07 17:55:32 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-07 10:45: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-07 19:30:41 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 312ms 2,977 0ms 0ms 0ms discard all;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Nov 07 01 124 12ms 0ms 02 124 12ms 0ms 03 124 13ms 0ms 04 124 12ms 0ms 05 124 12ms 0ms 06 124 12ms 0ms 07 124 12ms 0ms 08 124 12ms 0ms 09 125 13ms 0ms 10 123 12ms 0ms 11 124 12ms 0ms 12 124 13ms 0ms 13 124 13ms 0ms 14 124 12ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 13ms 0ms 19 124 13ms 0ms 20 124 12ms 0ms 21 124 13ms 0ms 22 124 13ms 0ms 23 125 13ms 0ms 00 124 13ms 0ms [ User: azuresu - Total duration: 312ms - Times executed: 2977 ]
[ Application: [unknown] - Total duration: 312ms - Times executed: 2977 ]
-
DISCARD ALL;
Date: 2025-11-07 14:16:19 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-07 08:02:06 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-07 20:50:14 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 07 01 2 2ms 1ms 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 2ms 1ms 08 2 3ms 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 3ms 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 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-07 07:26:37 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-07 15:27:07 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-07 19:27:21 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 39ms 2,786 0ms 1ms 0ms select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) end as pg_walfile_name;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Nov 07 01 116 1ms 0ms 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 117 1ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 116 1ms 0ms 11 116 1ms 0ms 12 116 2ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 2ms 0ms 16 116 2ms 0ms 17 116 2ms 0ms 18 117 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 1ms 0ms [ User: azuresu - Total duration: 39ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 39ms - 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-07 14:13:35 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-07 15:05:47 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-07 16:09:52 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 35ms 96 0ms 1ms 0ms set session authorization default; reset all; close "..." *; select pg_advisory_unlock_all(); discard sequences; discard temp;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Nov 07 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 3ms 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 2ms 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-07 07:34:48 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-07 07:49:52 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-07 19:35:52 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
7 28ms 24 0ms 3ms 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 07 01 1 1ms 1ms 02 1 1ms 1ms 03 1 0ms 0ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 1ms 1ms 10 1 1ms 1ms 11 1 1ms 1ms 12 1 1ms 1ms 13 1 1ms 1ms 14 1 1ms 1ms 15 1 1ms 1ms 16 1 1ms 1ms 17 1 1ms 1ms 18 1 1ms 1ms 19 1 1ms 1ms 20 1 3ms 3ms 21 1 1ms 1ms 22 1 0ms 0ms 23 1 1ms 1ms 00 1 1ms 1ms [ User: azuresu - Total duration: 28ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 28ms - 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-07 19:27:21 Duration: 3ms 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-07 07:26:37 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-07 12:26:56 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
8 20ms 24 0ms 1ms 0ms 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 07 01 1 0ms 0ms 02 1 1ms 1ms 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 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 0ms 0ms 19 1 0ms 0ms 20 1 1ms 1ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 20ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 20ms - 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-07 19:35:42 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-07 07:34:38 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-07 01:34:16 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 07 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 120000;
Date: 2025-11-07 08:26:42 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-07 01:56:17 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-07 07:04:32 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 3ms 24 0ms 1ms 0ms select ? as parameter, has_database_privilege(?, ?, ?) as value union all select ? as parameter, has_schema_privilege(?, ?, ?) as value;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Nov 07 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 1ms 1ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 06:26:34 Duration: 1ms 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-07 12:26:56 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-07 15:27:07 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 3ms 24 0ms 0ms 0ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Nov 07 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-07 20:27:24 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-07 08:26:42 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-07 07:26:37 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
12 3ms 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 07 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: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 08:34:48 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-07 17:50:32 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-07 05:34:28 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
13 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 #13
Day Hour Count Duration Avg duration Nov 07 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-07 07:04:32 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-07 18:20:33 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-07 16:05:24 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
14 0ms 1 0ms 0ms 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 #14
Day Hour Count Duration Avg duration Nov 07 00 1 0ms 0ms [ User: azuresu - Total duration: 0ms - Times executed: 1 ]
[ Application: [unknown] - Total duration: 0ms - Times executed: 1 ]
-
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-07 23:51:29 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,977 312ms 0ms 0ms 0ms discard all;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Nov 07 01 124 12ms 0ms 02 124 12ms 0ms 03 124 13ms 0ms 04 124 12ms 0ms 05 124 12ms 0ms 06 124 12ms 0ms 07 124 12ms 0ms 08 124 12ms 0ms 09 125 13ms 0ms 10 123 12ms 0ms 11 124 12ms 0ms 12 124 13ms 0ms 13 124 13ms 0ms 14 124 12ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 13ms 0ms 19 124 13ms 0ms 20 124 12ms 0ms 21 124 13ms 0ms 22 124 13ms 0ms 23 125 13ms 0ms 00 124 13ms 0ms [ User: azuresu - Total duration: 312ms - Times executed: 2977 ]
[ Application: [unknown] - Total duration: 312ms - Times executed: 2977 ]
-
DISCARD ALL;
Date: 2025-11-07 14:16:19 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-07 08:02:06 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-07 20:50:14 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
2 2,786 39ms 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 #2
Day Hour Count Duration Avg duration Nov 07 01 116 1ms 0ms 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 117 1ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 116 1ms 0ms 11 116 1ms 0ms 12 116 2ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 2ms 0ms 16 116 2ms 0ms 17 116 2ms 0ms 18 117 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 1ms 0ms [ User: azuresu - Total duration: 39ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 39ms - 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-07 14:13:35 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-07 15:05:47 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-07 16:09:52 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 2,785 1s732ms 0ms 11ms 0ms with slots_info as ( select slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end as wal_retention_from_restart_lsn, stat.replay_lsn, case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end as replay_lsn_else_restart_lsn, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name ( case when stat.replay_lsn is null then slot.restart_lsn else stat.replay_lsn end) end as must_retain_wal_file, case when pg_is_in_recovery() then null else ( case when stat.replay_lsn is null then null else pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint end) end as wal_retention_from_replay_lsn from pg_catalog.pg_replication_slots slot left join pg_catalog.pg_stat_replication stat on slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( select * from slots_info where slot_type = ? and slot_name like ? or slot_name like ? ), read_replica_slot_info as ( select * from slots_info where slot_type = ? and slot_name not like ? and slot_name not like ? ) select ( select row_to_json(t1) logical_slots from ( select ( select count(*) as active from slots_info where slot_type = ? and active = true), ( select count(*) as inactive from slots_info where slot_type = ? and active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from slots_info where slot_type = ? order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( select row_to_json(t1) read_replica_slots from ( select ( select count(*) as active from read_replica_slot_info where active = true), ( select count(*) as inactive from read_replica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from read_replica_slot_info order by replay_lsn_else_restart_lsn limit ?) as t) as lagging_order) as t1), ( select row_to_json(t1) standby_and_walreplica_slots from ( select ( select count(*) as active from standby_and_walreplica_slot_info where active = true), ( select count(*) as inactive from standby_and_walreplica_slot_info where active <> true), ( select jsonb_agg(row_to_json(t)) from ( select * from standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( select row_to_json(t)::text as checkpoint_info from ( select ( select trunc(max(extract(epoch from current_timestamp - xact_start))) as max_age from pg_stat_activity) oldest_live_tx_age, trunc(extract(epoch from current_timestamp - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, to_char(checkpoint_time at time zone ?, ?) as checkpoint_time, case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (checkpoint_lsn) end as checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( select cast(current_setting(?) as integer) as block_size) as sub_query) as t), ( select row_to_json(t)::text as archiver_info from ( select trunc(extract(epoch from current_timestamp - last_archived_time)) last_archival, (last_failed_wal is null or last_failed_wal <= last_archived_wal) is_archiving, trunc( case when archived_count = ? or extract(epoch from age(now(), stats_reset)) = ? then ? else cast(archived_count as numeric) * ? / extract(epoch from age(now(), stats_reset)) end) wals_archived_per_minute, last_archived_wal, to_char(last_archived_time at time zone ?, ?) as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( select row_to_json(t)::text as wal_upload_related_details from ( select ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) end as current), ( select case when pg_is_in_recovery() then null else pg_catalog.pg_walfile_name (flush_lsn) end as quorum_committed from slots_info where slot_type = ? and sync_state = ? order by flush_lsn desc limit ?), ( select cast(pg_catalog.current_setting(?) as boolean) as enforce_ha_quorom), ( select pg_catalog.current_setting(?) as synchronous_standby_names), ( select cast(pg_catalog.pg_is_in_recovery() as boolean) as pg_is_in_recovery)) as t), ( select to_char(pg_catalog.now() at time zone ?, ?)) as time_fetched;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Nov 07 01 116 66ms 0ms 02 116 72ms 0ms 03 116 67ms 0ms 04 116 70ms 0ms 05 117 70ms 0ms 06 116 71ms 0ms 07 116 74ms 0ms 08 116 89ms 0ms 09 116 70ms 0ms 10 116 75ms 0ms 11 116 70ms 0ms 12 116 73ms 0ms 13 116 71ms 0ms 14 116 76ms 0ms 15 116 77ms 0ms 16 116 67ms 0ms 17 116 73ms 0ms 18 117 68ms 0ms 19 116 64ms 0ms 20 116 67ms 0ms 21 116 78ms 0ms 22 116 72ms 0ms 23 116 71ms 0ms 00 115 69ms 0ms [ User: azuresu - Total duration: 1s732ms - Times executed: 2785 ]
[ Application: [unknown] - Total duration: 1s732ms - Times executed: 2785 ]
-
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-07 07:16:58 Duration: 11ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-11-07 01:25:59 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-07 03:43:29 Duration: 3ms 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 07 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 120000;
Date: 2025-11-07 08:26:42 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-07 01:56:17 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-07 07:04:32 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 287 349ms 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 07 01 12 15ms 1ms 02 12 13ms 1ms 03 12 14ms 1ms 04 12 14ms 1ms 05 12 14ms 1ms 06 12 14ms 1ms 07 12 14ms 1ms 08 12 15ms 1ms 09 12 14ms 1ms 10 12 14ms 1ms 11 11 15ms 1ms 12 12 14ms 1ms 13 12 14ms 1ms 14 12 14ms 1ms 15 12 13ms 1ms 16 12 15ms 1ms 17 12 14ms 1ms 18 12 17ms 1ms 19 12 14ms 1ms 20 12 15ms 1ms 21 12 13ms 1ms 22 12 14ms 1ms 23 12 14ms 1ms 00 12 13ms 1ms [ User: azuresu - Total duration: 349ms - Times executed: 287 ]
[ Application: [unknown] - Total duration: 349ms - Times executed: 287 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-07 17:55:32 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-07 10:45: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-07 19:30:41 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 96 35ms 0ms 1ms 0ms set session authorization default; reset all; close "..." *; select pg_advisory_unlock_all(); discard sequences; discard temp;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Nov 07 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 3ms 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 2ms 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-07 07:34:48 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-07 07:49:52 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-07 19:35:52 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
7 96 3ms 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 #7
Day Hour Count Duration Avg duration Nov 07 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: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 08:34:48 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-07 17:50:32 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-07 05:34:28 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
8 96 2ms 0ms 0ms 0ms select start_time, end_time, user_id, db_id, query_id, event_type, event, calls from query_store.pgms_wait_sampling_view where end_time > current_timestamp - ?::interval;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Nov 07 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-07 07:04:32 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-07 18:20:33 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-07 16:05:24 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 07 01 2 2ms 1ms 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 2ms 1ms 08 2 3ms 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 3ms 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 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-07 07:26:37 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-07 15:27:07 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-07 19:27:21 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 24 28ms 0ms 3ms 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 07 01 1 1ms 1ms 02 1 1ms 1ms 03 1 0ms 0ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 1ms 1ms 10 1 1ms 1ms 11 1 1ms 1ms 12 1 1ms 1ms 13 1 1ms 1ms 14 1 1ms 1ms 15 1 1ms 1ms 16 1 1ms 1ms 17 1 1ms 1ms 18 1 1ms 1ms 19 1 1ms 1ms 20 1 3ms 3ms 21 1 1ms 1ms 22 1 0ms 0ms 23 1 1ms 1ms 00 1 1ms 1ms [ User: azuresu - Total duration: 28ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 28ms - 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-07 19:27:21 Duration: 3ms 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-07 07:26:37 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-07 12:26:56 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
11 24 20ms 0ms 1ms 0ms 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 07 01 1 0ms 0ms 02 1 1ms 1ms 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 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 0ms 0ms 19 1 0ms 0ms 20 1 1ms 1ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 20ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 20ms - 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-07 19:35:42 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-07 07:34:38 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-07 01:34:16 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
12 24 3ms 0ms 1ms 0ms select ? as parameter, has_database_privilege(?, ?, ?) as value union all select ? as parameter, has_schema_privilege(?, ?, ?) as value;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Nov 07 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 1ms 1ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 06:26:34 Duration: 1ms 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-07 12:26:56 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-07 15:27:07 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
13 24 3ms 0ms 0ms 0ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Nov 07 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-07 20:27:24 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-07 08:26:42 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-07 07:26:37 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
14 1 0ms 0ms 0ms 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 #14
Day Hour Count Duration Avg duration Nov 07 00 1 0ms 0ms [ User: azuresu - Total duration: 0ms - Times executed: 1 ]
[ Application: [unknown] - Total duration: 0ms - Times executed: 1 ]
-
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-07 23:51:29 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 07 01 2 2ms 1ms 02 2 2ms 1ms 03 2 2ms 1ms 04 2 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 2ms 1ms 08 2 3ms 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 3ms 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 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-07 07:26:37 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-07 15:27:07 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-07 19:27:21 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
2 0ms 4ms 1ms 287 349ms select setting from pg_catalog.pg_settings where name = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Nov 07 01 12 15ms 1ms 02 12 13ms 1ms 03 12 14ms 1ms 04 12 14ms 1ms 05 12 14ms 1ms 06 12 14ms 1ms 07 12 14ms 1ms 08 12 15ms 1ms 09 12 14ms 1ms 10 12 14ms 1ms 11 11 15ms 1ms 12 12 14ms 1ms 13 12 14ms 1ms 14 12 14ms 1ms 15 12 13ms 1ms 16 12 15ms 1ms 17 12 14ms 1ms 18 12 17ms 1ms 19 12 14ms 1ms 20 12 15ms 1ms 21 12 13ms 1ms 22 12 14ms 1ms 23 12 14ms 1ms 00 12 13ms 1ms [ User: azuresu - Total duration: 349ms - Times executed: 287 ]
[ Application: [unknown] - Total duration: 349ms - Times executed: 287 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-07 17:55:32 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-07 10:45: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-07 19:30:41 Duration: 2ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
3 0ms 3ms 1ms 24 28ms 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 07 01 1 1ms 1ms 02 1 1ms 1ms 03 1 0ms 0ms 04 1 1ms 1ms 05 1 1ms 1ms 06 1 1ms 1ms 07 1 1ms 1ms 08 1 1ms 1ms 09 1 1ms 1ms 10 1 1ms 1ms 11 1 1ms 1ms 12 1 1ms 1ms 13 1 1ms 1ms 14 1 1ms 1ms 15 1 1ms 1ms 16 1 1ms 1ms 17 1 1ms 1ms 18 1 1ms 1ms 19 1 1ms 1ms 20 1 3ms 3ms 21 1 1ms 1ms 22 1 0ms 0ms 23 1 1ms 1ms 00 1 1ms 1ms [ User: azuresu - Total duration: 28ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 28ms - 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-07 19:27:21 Duration: 3ms 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-07 07:26:37 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-07 12:26:56 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
4 0ms 1ms 0ms 24 20ms 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 07 01 1 0ms 0ms 02 1 1ms 1ms 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 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 0ms 0ms 19 1 0ms 0ms 20 1 1ms 1ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 20ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 20ms - 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-07 19:35:42 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-07 07:34:38 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-07 01:34:16 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
5 0ms 11ms 0ms 2,785 1s732ms 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 07 01 116 66ms 0ms 02 116 72ms 0ms 03 116 67ms 0ms 04 116 70ms 0ms 05 117 70ms 0ms 06 116 71ms 0ms 07 116 74ms 0ms 08 116 89ms 0ms 09 116 70ms 0ms 10 116 75ms 0ms 11 116 70ms 0ms 12 116 73ms 0ms 13 116 71ms 0ms 14 116 76ms 0ms 15 116 77ms 0ms 16 116 67ms 0ms 17 116 73ms 0ms 18 117 68ms 0ms 19 116 64ms 0ms 20 116 67ms 0ms 21 116 78ms 0ms 22 116 72ms 0ms 23 116 71ms 0ms 00 115 69ms 0ms [ User: azuresu - Total duration: 1s732ms - Times executed: 2785 ]
[ Application: [unknown] - Total duration: 1s732ms - Times executed: 2785 ]
-
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-07 07:16:58 Duration: 11ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
-
With slots_info AS ( SELECT slot.slot_name, slot.active, slot.slot_type, stat.write_lsn, stat.flush_lsn, stat.sync_state, slot.restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END as wal_retention_from_restart_lsn, stat.replay_lsn, CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END as replay_lsn_else_restart_lsn, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name ( CASE WHEN stat.replay_lsn IS NULL THEN slot.restart_lsn ELSE stat.replay_lsn END) END as must_retain_wal_file, CASE WHEN pg_is_in_recovery() THEN NULL ELSE ( CASE WHEN stat.replay_lsn IS NULL THEN NULL ELSE pg_catalog.pg_wal_lsn_diff (pg_catalog.pg_current_wal_lsn (), slot.restart_lsn)::bigint END) END as wal_retention_from_replay_lsn FROM pg_catalog.pg_replication_slots slot LEFT JOIN pg_catalog.pg_stat_replication stat ON slot.active_pid = stat.pid ), standby_and_walreplica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name LIKE 'azure_standby%' or slot_name like 'wal_replica%' ), read_replica_slot_info as ( SELECT * FROM slots_info where slot_type = 'physical' and slot_name not LIKE 'azure_standby%' and slot_name not like 'wal_replica%' ) SELECT ( SELECT row_to_json(t1) logical_slots FROM ( SELECT ( SELECT count(*) as active FROM slots_info where slot_type = 'logical' and active = true), ( SELECT count(*) as inactive FROM slots_info where slot_type = 'logical' and active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM slots_info where slot_type = 'logical' order by replay_lsn_else_restart_lsn) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) read_replica_slots FROM ( SELECT ( SELECT count(*) as active FROM read_replica_slot_info where active = true), ( SELECT count(*) as inactive FROM read_replica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM read_replica_slot_info order by replay_lsn_else_restart_lsn limit 4) as t) as lagging_order) as t1), ( SELECT row_to_json(t1) standby_and_walreplica_slots FROM ( SELECT ( SELECT count(*) as active FROM standby_and_walreplica_slot_info where active = true), ( SELECT count(*) as inactive FROM standby_and_walreplica_slot_info where active <> true), ( SELECT jsonb_agg(row_to_json(t)) FROM ( SELECT * FROM standby_and_walreplica_slot_info) as t) as lagging_order) as t1), ( Select row_to_json(t)::text as checkpoint_info FROM ( Select ( SELECT trunc(MAX(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - xact_start))) AS max_age FROM pg_stat_activity) oldest_live_tx_age, trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - checkpoint_time)) as seconds_after_last_checkpoint, timeline_id, checkpoint_lsn, TO_CHAR(checkpoint_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as checkpoint_time, CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (checkpoint_lsn) END AS checkpoint_wal_file, redo_lsn, redo_wal_file, buffers_alloc, block_size, now() - stats_reset stats_reset from pg_catalog.pg_control_checkpoint (), pg_stat_bgwriter, ( SELECT cast(current_setting('block_size') AS integer) AS block_size) as sub_query) as t), ( Select row_to_json(t)::text as archiver_info FROM ( Select trunc(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - last_archived_time)) last_archival, (last_failed_wal IS NULL OR last_failed_wal <= last_archived_wal) is_archiving, trunc( CASE WHEN archived_count = 0 OR EXTRACT(EPOCH FROM age(now(), stats_reset)) = 0 THEN 0 ELSE CAST(archived_count AS numeric) * 60 / EXTRACT(EPOCH FROM age(now(), stats_reset)) END) wals_archived_per_minute, last_archived_wal, TO_CHAR(last_archived_time at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS') as last_archived_time, last_failed_wal, archived_count, failed_count, now() - stats_reset as stats_reset from pg_catalog.pg_stat_archiver) as t), ( Select row_to_json(t)::text as wal_upload_related_details FROM ( SELECT ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (pg_catalog.pg_current_wal_lsn ()) END as current), ( SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (flush_lsn) END as quorum_committed FROM slots_info where slot_type = 'physical' and sync_state = 'quorum' order by flush_lsn desc limit 1), ( SELECT CAST(pg_catalog.current_setting('azure.enforce_ha_quorom') AS boolean) AS enforce_ha_quorom), ( SELECT pg_catalog.current_setting('synchronous_standby_names') AS synchronous_standby_names), ( SELECT CAST(pg_catalog.pg_is_in_recovery() AS boolean) AS pg_is_in_recovery)) as t), ( select TO_CHAR(pg_catalog.now() at time zone 'utc', 'YYYY-MM-DD HH24:MI:SS')) as time_fetched;
Date: 2025-11-07 01:25:59 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-07 03:43:29 Duration: 3ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
6 0ms 0ms 0ms 1 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 #6
Day Hour Count Duration Avg duration Nov 07 00 1 0ms 0ms [ User: azuresu - Total duration: 0ms - Times executed: 1 ]
[ Application: [unknown] - Total duration: 0ms - Times executed: 1 ]
-
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-07 23:51:29 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
7 0ms 1ms 0ms 96 35ms set session authorization default; reset all; close "..." *; select pg_advisory_unlock_all(); discard sequences; discard temp;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Nov 07 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 3ms 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 2ms 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-07 07:34:48 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-07 07:49:52 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-07 19:35:52 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
8 0ms 1ms 0ms 24 3ms select ? as parameter, has_database_privilege(?, ?, ?) as value union all select ? as parameter, has_schema_privilege(?, ?, ?) as value;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Nov 07 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 1ms 1ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms 00 1 0ms 0ms [ User: azuresu - Total duration: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 06:26:34 Duration: 1ms 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-07 12:26:56 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-07 15:27:07 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
9 0ms 0ms 0ms 24 3ms select extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition from pg_catalog.pg_extension;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Nov 07 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-07 20:27:24 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-07 08:26:42 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-07 07:26:37 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
10 0ms 0ms 0ms 2,977 312ms discard all;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Nov 07 01 124 12ms 0ms 02 124 12ms 0ms 03 124 13ms 0ms 04 124 12ms 0ms 05 124 12ms 0ms 06 124 12ms 0ms 07 124 12ms 0ms 08 124 12ms 0ms 09 125 13ms 0ms 10 123 12ms 0ms 11 124 12ms 0ms 12 124 13ms 0ms 13 124 13ms 0ms 14 124 12ms 0ms 15 124 13ms 0ms 16 124 13ms 0ms 17 124 13ms 0ms 18 124 13ms 0ms 19 124 13ms 0ms 20 124 12ms 0ms 21 124 13ms 0ms 22 124 13ms 0ms 23 125 13ms 0ms 00 124 13ms 0ms [ User: azuresu - Total duration: 312ms - Times executed: 2977 ]
[ Application: [unknown] - Total duration: 312ms - Times executed: 2977 ]
-
DISCARD ALL;
Date: 2025-11-07 14:16:19 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-07 08:02:06 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
-
DISCARD ALL;
Date: 2025-11-07 20:50:14 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown]
11 0ms 0ms 0ms 96 3ms 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 #11
Day Hour Count Duration Avg duration Nov 07 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: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 08:34:48 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-07 17:50:32 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-07 05:34:28 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
12 0ms 0ms 0ms 336 9ms set session statement_timeout to ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Nov 07 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 120000;
Date: 2025-11-07 08:26:42 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-07 01:56:17 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-07 07:04:32 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
13 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 #13
Day Hour Count Duration Avg duration Nov 07 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-07 07:04:32 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-07 18:20:33 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-07 16:05:24 Duration: 0ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
14 0ms 1ms 0ms 2,786 39ms 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 #14
Day Hour Count Duration Avg duration Nov 07 01 116 1ms 0ms 02 116 1ms 0ms 03 116 1ms 0ms 04 116 1ms 0ms 05 117 1ms 0ms 06 116 1ms 0ms 07 116 1ms 0ms 08 116 1ms 0ms 09 116 1ms 0ms 10 116 1ms 0ms 11 116 1ms 0ms 12 116 2ms 0ms 13 116 1ms 0ms 14 116 1ms 0ms 15 116 2ms 0ms 16 116 2ms 0ms 17 116 2ms 0ms 18 117 1ms 0ms 19 116 1ms 0ms 20 116 1ms 0ms 21 116 1ms 0ms 22 116 1ms 0ms 23 116 1ms 0ms 00 116 1ms 0ms [ User: azuresu - Total duration: 39ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 39ms - 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-07 14:13:35 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-07 15:05:47 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-07 16:09:52 Duration: 1ms Database: azure_sys User: azuresu Remote: 169.254.128.1 Application: [unknown] Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 13s644ms 2,785 3ms 15ms 4ms With slots_info AS ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Nov 07 01 116 557ms 4ms 02 116 568ms 4ms 03 116 549ms 4ms 04 116 570ms 4ms 05 117 583ms 4ms 06 116 559ms 4ms 07 116 576ms 4ms 08 116 608ms 5ms 09 116 565ms 4ms 10 116 586ms 5ms 11 116 561ms 4ms 12 116 558ms 4ms 13 116 554ms 4ms 14 116 579ms 4ms 15 116 569ms 4ms 16 116 562ms 4ms 17 116 558ms 4ms 18 117 556ms 4ms 19 116 566ms 4ms 20 116 621ms 5ms 21 116 561ms 4ms 22 116 550ms 4ms 23 116 564ms 4ms 00 115 552ms 4ms [ User: azuresu - Total duration: 1s732ms - Times executed: 2785 ]
[ Application: [unknown] - Total duration: 1s732ms - Times executed: 2785 ]
-
With slots_info AS ( ;
Date: 2025-11-07 06:11:50 Duration: 15ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-07 01:36:51 Duration: 14ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-07 19:36:40 Duration: 13ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 789ms 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 33ms 0ms 02 116 30ms 0ms 03 116 35ms 0ms 04 117 30ms 0ms 05 116 44ms 0ms 06 116 38ms 0ms 07 116 30ms 0ms 08 116 34ms 0ms 09 116 33ms 0ms 10 116 31ms 0ms 11 116 28ms 0ms 12 116 29ms 0ms 13 116 34ms 0ms 14 116 32ms 0ms 15 116 29ms 0ms 16 116 30ms 0ms 17 117 34ms 0ms 18 116 33ms 0ms 19 116 33ms 0ms 20 116 31ms 0ms 21 116 33ms 0ms 22 116 34ms 0ms 23 116 31ms 0ms [ User: azuresu - Total duration: 39ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 39ms - 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-07 05:16:01 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-07 06:48:32 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-11-07 17:23:47 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 183ms 96 1ms 23ms 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 #3
Day Hour Count Duration Avg duration 00 4 5ms 1ms 01 4 5ms 1ms 02 4 5ms 1ms 03 4 5ms 1ms 04 4 6ms 1ms 05 4 5ms 1ms 06 4 5ms 1ms 07 4 37ms 9ms 08 4 7ms 1ms 09 4 5ms 1ms 10 4 5ms 1ms 11 4 5ms 1ms 12 4 5ms 1ms 13 4 5ms 1ms 14 4 5ms 1ms 15 4 5ms 1ms 16 4 6ms 1ms 17 4 5ms 1ms 18 4 5ms 1ms 19 4 17ms 4ms 20 4 5ms 1ms 21 4 5ms 1ms 22 4 5ms 1ms 23 4 5ms 1ms [ User: azuresu - Total duration: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - Times executed: 96 ]
-
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-07 07:49:42 Duration: 23ms 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-07 19:35:42 Duration: 13ms 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-07 07:34:38 Duration: 11ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 182ms 287 0ms 3ms 0ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';Times Reported Time consuming prepare #4
Day Hour Count Duration Avg duration 00 12 6ms 0ms 01 12 6ms 0ms 02 12 6ms 0ms 03 12 6ms 0ms 04 12 6ms 0ms 05 12 7ms 0ms 06 12 6ms 0ms 07 12 24ms 2ms 08 12 6ms 0ms 09 12 7ms 0ms 10 11 6ms 0ms 11 12 6ms 0ms 12 12 6ms 0ms 13 12 10ms 0ms 14 12 6ms 0ms 15 12 7ms 0ms 16 12 6ms 0ms 17 12 6ms 0ms 18 12 7ms 0ms 19 12 6ms 0ms 20 12 6ms 0ms 21 12 6ms 0ms 22 12 6ms 0ms 23 12 6ms 0ms [ User: azuresu - Total duration: 349ms - Times executed: 287 ]
[ Application: [unknown] - Total duration: 349ms - Times executed: 287 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-07 07:39:39 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-07 13:15:10 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-07 07:34:38 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 80ms 48 1ms 7ms 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 2ms 1ms 05 2 2ms 1ms 06 2 2ms 1ms 07 2 14ms 7ms 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 7ms 3ms 20 2 2ms 1ms 21 2 2ms 1ms 22 2 2ms 1ms 23 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-07 07:26:37 Duration: 7ms 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-07 07:56:40 Duration: 6ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-11-07 19:57:23 Duration: 6ms 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-07 08:19:46 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-07 12:05:06 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-07 07:34:38 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 11ms 24 0ms 2ms 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 2ms 2ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 1ms 1ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 28ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 28ms - 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-07 07:26:37 Duration: 2ms 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-07 19:27:21 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-07 11:26:52 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 11ms 24 0ms 2ms 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 #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 2ms 2ms 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 2ms 2ms 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 '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-07 20:27:24 Duration: 2ms 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-07 07:26:37 Duration: 2ms 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-07 08:26:42 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
9 10ms 24 0ms 1ms 0ms SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;Times Reported Time consuming prepare #9
Day Hour Count Duration Avg duration 00 1 0ms 0ms 01 1 0ms 0ms 02 1 0ms 0ms 03 1 0ms 0ms 04 1 0ms 0ms 05 1 0ms 0ms 06 1 0ms 0ms 07 1 1ms 1ms 08 1 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 1ms 1ms 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-07 20:27:24 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-07 07:26:37 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-07 08:26:42 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
10 7ms 168 0ms 0ms 0ms set session statement_timeout to 120000;Times Reported Time consuming prepare #10
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-07 15:20:20 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-07 23:05:59 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-07 10:19:57 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
11 4ms 24 0ms 1ms 0ms SELECT start_time, end_time, querycount FROM query_stats.pgms_stats_query_counts WHERE end_time > current_timestamp - '3600 seconds'::interval;Times Reported Time consuming prepare #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 1ms 1ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 20ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 20ms - 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-07 07:34:38 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-07 19:35:42 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-07 08:34:48 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
12 3ms 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-07 15:57:08 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-07 04:56:28 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-07 12:56:58 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 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-07 07:34:38 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-07 13:35:11 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-07 14:35:17 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 12s522ms 2,785 3ms 21ms 4ms With slots_info AS ( ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Nov 07 01 116 521ms 4ms 02 116 513ms 4ms 03 116 513ms 4ms 04 116 546ms 4ms 05 117 533ms 4ms 06 116 517ms 4ms 07 116 515ms 4ms 08 116 556ms 4ms 09 116 507ms 4ms 10 116 535ms 4ms 11 116 509ms 4ms 12 116 522ms 4ms 13 116 520ms 4ms 14 116 535ms 4ms 15 116 522ms 4ms 16 116 501ms 4ms 17 116 519ms 4ms 18 117 529ms 4ms 19 116 520ms 4ms 20 116 552ms 4ms 21 116 508ms 4ms 22 116 504ms 4ms 23 116 510ms 4ms 00 115 503ms 4ms [ User: azuresu - Total duration: 1s732ms - Times executed: 2785 ]
[ Application: [unknown] - Total duration: 1s732ms - Times executed: 2785 ]
-
With slots_info AS ( ;
Date: 2025-11-07 03:13:30 Duration: 21ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-07 19:34:05 Duration: 15ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
With slots_info AS ( ;
Date: 2025-11-07 11:52:59 Duration: 14ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
2 380ms 96 2ms 45ms 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 #2
Day Hour Count Duration Avg duration 00 4 14ms 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 75ms 18ms 08 4 22ms 5ms 09 4 11ms 2ms 10 4 11ms 2ms 11 4 14ms 3ms 12 4 11ms 2ms 13 4 12ms 3ms 14 4 10ms 2ms 15 4 15ms 3ms 16 4 10ms 2ms 17 4 10ms 2ms 18 4 10ms 2ms 19 4 34ms 8ms 20 4 11ms 2ms 21 4 10ms 2ms 22 4 11ms 2ms 23 4 12ms 3ms [ User: azuresu - Total duration: 3ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 07:34:38 Duration: 45ms 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-07 19:35:42 Duration: 26ms 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-07 07:49:42 Duration: 23ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
3 376ms 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 #3
Day Hour Count Duration Avg duration 00 116 15ms 0ms 01 116 15ms 0ms 02 116 14ms 0ms 03 116 15ms 0ms 04 117 14ms 0ms 05 116 13ms 0ms 06 116 15ms 0ms 07 116 16ms 0ms 08 116 15ms 0ms 09 116 20ms 0ms 10 116 17ms 0ms 11 116 13ms 0ms 12 116 13ms 0ms 13 116 22ms 0ms 14 116 17ms 0ms 15 116 14ms 0ms 16 116 15ms 0ms 17 117 14ms 0ms 18 116 15ms 0ms 19 116 14ms 0ms 20 116 12ms 0ms 21 116 15ms 0ms 22 116 13ms 0ms 23 116 17ms 0ms [ User: azuresu - Total duration: 39ms - Times executed: 2786 ]
[ Application: [unknown] - Total duration: 39ms - 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-07 13:24:28 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-07 14:35:17 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT CASE WHEN pg_is_in_recovery() THEN NULL ELSE pg_catalog.pg_walfile_name (public.pg_last_removed_wal_lsn ()) END as pg_walfile_name;
Date: 2025-11-07 10:34:25 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
4 136ms 287 0ms 2ms 0ms SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';Times Reported Time consuming bind #4
Day Hour Count Duration Avg duration 00 12 5ms 0ms 01 12 4ms 0ms 02 12 5ms 0ms 03 12 6ms 0ms 04 12 5ms 0ms 05 12 5ms 0ms 06 12 5ms 0ms 07 12 7ms 0ms 08 12 5ms 0ms 09 12 5ms 0ms 10 11 5ms 0ms 11 12 5ms 0ms 12 12 5ms 0ms 13 12 5ms 0ms 14 12 5ms 0ms 15 12 6ms 0ms 16 12 5ms 0ms 17 12 5ms 0ms 18 12 5ms 0ms 19 12 7ms 0ms 20 12 5ms 0ms 21 12 5ms 0ms 22 12 5ms 0ms 23 12 5ms 0ms [ User: azuresu - Total duration: 349ms - Times executed: 287 ]
[ Application: [unknown] - Total duration: 349ms - Times executed: 287 ]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-07 19:30:41 Duration: 2ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT setting FROM pg_catalog.pg_settings where name = 'pg_qs.emit_logs_for_instance_types';
Date: 2025-11-07 03:34:22 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-07 10:14:57 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
5 131ms 48 1ms 13ms 2ms SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 00 2 3ms 1ms 01 2 3ms 1ms 02 2 3ms 1ms 03 2 3ms 1ms 04 2 3ms 1ms 05 2 4ms 2ms 06 2 3ms 1ms 07 2 23ms 11ms 08 2 3ms 1ms 09 2 4ms 2ms 10 2 4ms 2ms 11 2 3ms 1ms 12 2 4ms 2ms 13 2 3ms 1ms 14 2 3ms 1ms 15 2 4ms 2ms 16 2 3ms 1ms 17 2 3ms 1ms 18 2 4ms 2ms 19 2 20ms 10ms 20 2 4ms 2ms 21 2 3ms 1ms 22 2 3ms 1ms 23 2 4ms 2ms [ 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-07 19:57:23 Duration: 13ms 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-07 07:56:40 Duration: 12ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT schemaname, sum(n_live_tup) AS n_live_tup, sum(n_dead_tup) AS n_dead_tup, sum(seq_scan) AS seq_scan, sum(seq_tup_read) AS seq_tup_read, sum(idx_scan) AS idx_scan, sum(idx_tup_fetch) AS idx_tup_fetch, sum(n_tup_ins) AS n_tup_ins, sum(n_tup_upd) AS n_tup_upd, sum(n_tup_del) AS n_tup_del, sum(n_tup_hot_upd) AS n_tup_hot_upd, sum(n_mod_since_analyze) AS n_mod_since_analyze, sum(vacuum_count) AS vacuum_count, sum(autovacuum_count) AS autovacuum_count, sum(analyze_count) AS analyze_count, sum(autoanalyze_count) AS autoanalyze_count, count(relid) AS tables_counter, sum( case when last_vacuum IS NOT NULL then 1 else 0 end)::bigint as tables_vacuumed, sum( case when last_autovacuum IS NOT NULL then 1 else 0 end)::bigint as tables_autovacuumed, sum( case when last_analyze IS NOT NULL then 1 else 0 end)::bigint as tables_analyzed, sum( case when last_autoanalyze IS NOT NULL then 1 else 0 end)::bigint as tables_autoanalyzed FROM pg_catalog.pg_stat_all_tables group by schemaname;
Date: 2025-11-07 07:26:37 Duration: 11ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
6 85ms 96 0ms 31ms 0ms SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 00 4 2ms 0ms 01 4 1ms 0ms 02 4 1ms 0ms 03 4 1ms 0ms 04 4 1ms 0ms 05 4 1ms 0ms 06 4 1ms 0ms 07 4 35ms 8ms 08 4 2ms 0ms 09 4 2ms 0ms 10 4 1ms 0ms 11 4 2ms 0ms 12 4 1ms 0ms 13 4 1ms 0ms 14 4 2ms 0ms 15 4 2ms 0ms 16 4 1ms 0ms 17 4 1ms 0ms 18 4 1ms 0ms 19 4 6ms 1ms 20 4 1ms 0ms 21 4 2ms 0ms 22 4 1ms 0ms 23 4 1ms 0ms [ User: azuresu - Total duration: 2ms - Times executed: 96 ]
[ Application: [unknown] - Total duration: 2ms - Times executed: 96 ]
-
SELECT start_time, end_time, user_id, db_id, query_id, event_type, event, calls FROM query_store.pgms_wait_sampling_view WHERE end_time > current_timestamp - '900 seconds'::interval;
Date: 2025-11-07 07:49:42 Duration: 31ms 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-07 19:35:42 Duration: 5ms 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-07 07:34:38 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
7 22ms 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 4ms 4ms 08 1 3ms 3ms 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 3ms 3ms 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-07 07:26:37 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-07 08:26:42 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
-
SELECT extname, extowner, extnamespace, extrelocatable, extversion, extconfig, extcondition FROM pg_catalog.pg_extension;
Date: 2025-11-07 20:27:24 Duration: 3ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
8 11ms 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 1ms 1ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 20ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 20ms - 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-07 07:34:38 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-07 19:35:42 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-07 08:34:48 Duration: 1ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
9 9ms 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 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 1ms 1ms 08 1 0ms 0ms 09 1 0ms 0ms 10 1 0ms 0ms 11 1 0ms 0ms 12 1 0ms 0ms 13 1 0ms 0ms 14 1 0ms 0ms 15 1 0ms 0ms 16 1 0ms 0ms 17 1 0ms 0ms 18 1 0ms 0ms 19 1 0ms 0ms 20 1 0ms 0ms 21 1 0ms 0ms 22 1 0ms 0ms 23 1 0ms 0ms [ User: azuresu - Total duration: 28ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 28ms - 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-07 07:26:37 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-07 20:27:24 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-07 08:26:42 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-07 20:27:24 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-07 21:27:28 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-07 00:34:12 Duration: 0ms Database: azure_sys User: azure_sys Remote: azuresu Application: 169.254.128.1 Queryid: [unknown]
11 2ms 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: 3ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 3ms - 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-07 06:26:34 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-07 15:27:07 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-07 23:27:35 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-07 12:56:58 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-07 08:56:43 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-07 06:56:35 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-07 19:35:42 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-07 22:35:58 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-07 23:36:03 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