-
Global information
- Generated on Sun Mar 15 06:01:31 2026
- Log file: /var/log/postgresql/postgresql-2026-03-06_225012.csv, ..., /var/log/postgresql/postgresql-2026-03-15_000000.csv
- Parsed 190,018 log entries in 1m30s
- Log start from 2026-03-14 00:00:01 to 2026-03-14 23:59:27
-
Overview
Global Stats
- 26 Number of unique normalized queries
- 17,805 Number of queries
- 5h44m49s Total query duration
- 2026-03-14 00:00:01 First query
- 2026-03-14 23:59:01 Last query
- 13 queries/s at 2026-03-14 16:17:01 Query peak
- 5h44m49s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 5h44m49s Execute total duration
- 191 Number of events
- 8 Number of unique normalized events
- 76 Max number of times the same event was reported
- 0 Number of cancellation
- 18 Total number of automatic vacuums
- 24 Total number of automatic analyzes
- 346 Number temporary file
- 125.43 MiB Max size of temporary file
- 80.01 MiB Average size of temporary file
- 16,710 Total number of sessions
- 8 sessions at 2026-03-14 16:53:28 Session peak
- 4h36m34s Total duration of sessions
- 993ms Average duration of sessions
- 1 Average queries per session
- 1s238ms Average queries duration per session
- 0ms Average idle time per session
- 16,741 Total number of connections
- 45 connections/s at 2026-03-14 16:41:09 Connection peak
- 3 Total number of databases
SQL Traffic
Key values
- 13 queries/s Query Peak
- 2026-03-14 16:17:01 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-03-14 15:49:11 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 13 queries/s Query Peak
- 2026-03-14 16:17:01 Date
Queries duration
Key values
- 5h44m49s 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) Mar 14 00 720 0ms 0ms 0ms 0ms 0ms 0ms 01 721 0ms 1s65ms 515ms 12s784ms 12s784ms 12s784ms 02 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 03 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 04 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 05 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 06 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 07 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 08 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 09 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 10 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 11 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 12 720 1s65ms 1s65ms 1s65ms 12s784ms 12s784ms 12s784ms 13 730 798ms 1s702ms 1s425ms 20s433ms 20s433ms 22s136ms 14 725 798ms 1s562ms 1s103ms 18s754ms 19s524ms 20s305ms 15 744 647ms 1s615ms 1s142ms 18s482ms 19s270ms 20s841ms 16 792 811ms 1s703ms 1s111ms 20s985ms 21s815ms 22s939ms 17 765 780ms 3s340ms 1s689ms 43s429ms 43s429ms 44s993ms 18 780 1s508ms 1s508ms 1s508ms 19s607ms 19s607ms 19s607ms 19 780 1s508ms 1s508ms 1s508ms 19s607ms 19s607ms 19s607ms 20 780 1s508ms 1s508ms 1s508ms 19s607ms 19s607ms 19s607ms 21 780 1s508ms 1s508ms 1s508ms 19s607ms 19s607ms 19s607ms 22 780 1s508ms 1s508ms 1s508ms 19s607ms 19s607ms 19s607ms 23 788 500ms 2s408ms 1s440ms 19s607ms 19s607ms 29s415ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 14 00 0 0 0ms 0ms 0ms 0ms 01 0 0 0ms 0ms 0ms 0ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 0 0 0ms 0ms 0ms 0ms 06 0 0 0ms 0ms 0ms 0ms 07 0 0 0ms 0ms 0ms 0ms 08 0 0 0ms 0ms 0ms 0ms 09 0 0 0ms 0ms 0ms 0ms 10 0 0 0ms 0ms 0ms 0ms 11 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 2 0 689ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 8 1s225ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 14 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 1s65ms 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 Mar 14 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 6 6.00 0.00% 14 0 4 4.00 0.00% 15 0 4 4.00 0.00% 16 0 7 7.00 0.00% 17 0 9 9.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Mar 14 00 247 0.07/s 01 250 0.07/s 02 244 0.07/s 03 247 0.07/s 04 250 0.07/s 05 256 0.07/s 06 247 0.07/s 07 259 0.07/s 08 248 0.07/s 09 244 0.07/s 10 247 0.07/s 11 244 0.07/s 12 244 0.07/s 13 1,361 0.38/s 14 1,139 0.32/s 15 2,245 0.62/s 16 2,465 0.68/s 17 1,532 0.43/s 18 788 0.22/s 19 938 0.26/s 20 1,032 0.29/s 21 912 0.25/s 22 547 0.15/s 23 555 0.15/s Day Hour Count Average Duration Average idle time Mar 14 00 247 61ms 61ms 01 250 66ms 0ms 02 244 60ms 0ms 03 247 61ms 0ms 04 250 60ms 0ms 05 256 61ms 0ms 06 247 60ms 0ms 07 259 59ms 0ms 08 248 61ms 0ms 09 244 61ms 0ms 10 245 61ms 0ms 11 244 60ms 0ms 12 244 61ms 0ms 13 1,355 1s71ms 304ms 14 1,143 1s450ms 749ms 15 2,245 872ms 493ms 16 2,446 810ms 451ms 17 1,524 5s161ms 4s313ms 18 788 325ms 0ms 19 938 307ms 0ms 20 1,032 288ms 0ms 21 912 304ms 0ms 22 547 310ms 0ms 23 555 342ms 0ms -
Connections
Established Connections
Key values
- 45 connections Connection Peak
- 2026-03-14 16:41:09 Date
Connections per database
Key values
- zemm_monitoring Main Database
- 16,741 connections Total
Connections per user
Key values
- labanimal Main User
- 16,741 connections Total
-
Sessions
Simultaneous sessions
Key values
- 8 sessions Session Peak
- 2026-03-14 16:53:28 Date
Histogram of session times
Key values
- 14,585 0-500ms duration
Sessions per database
Key values
- zemm_monitoring Main Database
- 16,710 sessions Total
Sessions per user
Key values
- labanimal Main User
- 16,710 sessions Total
Sessions per host
Key values
- ::1 Main Host
- 16,710 sessions Total
Sessions per application
Key values
- Main Application
- 16,710 sessions Total
Application Count Total Duration Average Duration 15,627 2h51m46s 659ms DBeaver 26.0.0 - Main 'zemm_produktiv_7' 1 51m 51m DBeaver 26.0.0 - Main 'zemm_produktiv_8' 1 51m 51m _backend_cage_autocomplete_api.php_q_2025_limit_12_zemm_produkt 18 450ms 25ms _backend_cage_autocomplete_api.php_q_55-065_limit_12_zemm_produ 18 489ms 27ms _backend_wean_api.php_litter_id_10130227_zemm_produktiv_7_local 90 12s634ms 140ms _backend_wean_api.php_litter_id_10130236_zemm_produktiv_7_local 89 13s55ms 146ms _backend_wean_api.php_litter_id_10130257_zemm_produktiv_7_local 108 15s683ms 145ms _desktop__zemm_produktiv_7_localhost_5432 18 861ms 47ms _desktop__zemm_produktiv_8_localhost_5432 2 370ms 185ms _desktop_index.php_command_animals_breedings_subcommand_select_ 18 727ms 40ms _desktop_index.php_command_animals_create_subcommand_init_zemm_ 18 811ms 45ms _desktop_index.php_command_animals_edit_subcommand_init_id_1028 1 112ms 112ms _desktop_index.php_command_animals_edit_subcommand_link_init_va 18 1s549ms 86ms _desktop_index.php_command_animals_edit_subcommand_m_init_scree 18 1s879ms 104ms _desktop_index.php_command_animals_litters_edit_subcommand_init 18 1s693ms 94ms _desktop_index.php_command_animals_litters_edit_subcommand_m_in 18 5s433ms 301ms _desktop_index.php_command_animals_litters_subcommand_select_ze 18 668ms 37ms _desktop_index.php_command_animals_subcommand_select_zemm_produ 18 1s66ms 59ms _desktop_index.php_command_login_subcommand_init_zemm_produktiv 84 2s320ms 27ms _desktop_index.php_command_reports_subcommand_fates_zemm_produk 18 1s866ms 103ms _desktop_index.php_command_reports_subcommand_init_zemm_produkt 36 10s124ms 281ms _desktop_index.php_command_tasks_subcommand_edit_id_10134267_ze 18 1s283ms 71ms _desktop_index.php_command_tasks_subcommand_init_search_zemm_pr 18 621ms 34ms _desktop_index.php_command_tasks_subcommand_search_zemm_produkt 18 632ms 35ms _desktop_index.php_zemm_produktiv_7_localhost_5432 328 1m6s 203ms _desktop_index.php_zemm_produktiv_8_localhost_5432 17 4s299ms 252ms backend:zemm_produktiv_8@localhost 1 513ms 513ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s83ms 1s83ms fatescron:zemm_produktiv_7@zemm.fbiscience.eu 1 1s360ms 1s360ms fatescron:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s287ms 1s287ms pg_dump 1 15s63ms 15s63ms psql 3 24ms 8ms taskscron:zemm_produktiv_7@zemm.fbiscience.eu 24 636ms 26ms taskscron:zemm_produktiv_8@h2940066.stratoserver.net:5432 24 2s14ms 83ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 55,429 buffers Checkpoint Peak
- 2026-03-14 12:06:17 Date
- 270.032 seconds Highest write time
- 0.057 seconds Sync time
Checkpoints Wal files
Key values
- 12 files Wal files usage Peak
- 2026-03-14 12:06:17 Date
Checkpoints distance
Key values
- 387.65 Mo Distance Peak
- 2026-03-14 12:06:17 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Mar 14 00 2,427 243.289s 0.066s 243.411s 01 20,342 450.692s 0.065s 450.808s 02 2,031 203.687s 0.063s 203.807s 03 1,803 180.847s 0.062s 180.963s 04 1,960 196.596s 0.066s 196.717s 05 1,815 182.05s 0.064s 182.167s 06 1,792 179.757s 0.063s 179.876s 07 1,970 197.582s 0.064s 197.698s 08 1,810 181.547s 0.062s 181.661s 09 1,824 182.964s 0.066s 183.087s 10 1,995 200.06s 0.067s 200.18s 11 1,801 180.633s 0.082s 180.765s 12 58,636 591.541s 0.061s 591.659s 13 6,956 663.754s 0.079s 663.886s 14 6,389 629.621s 0.145s 629.89s 15 3,558 356.665s 0.114s 356.841s 16 5,236 524.485s 0.109s 524.646s 17 3,820 364.063s 0.097s 364.216s 18 3,107 311.53s 0.072s 311.663s 19 4,068 407.679s 0.075s 407.809s 20 2,622 262.941s 0.072s 263.067s 21 2,800 280.766s 0.074s 280.896s 22 2,536 254.293s 0.072s 254.413s 23 2,857 286.414s 0.073s 286.54s Day Hour Added Removed Recycled Synced files Longest sync Average sync Mar 14 00 0 0 1 301 0.003s 0.012s 01 0 0 6 294 0.002s 0.011s 02 0 0 1 290 0.002s 0.012s 03 0 0 1 294 0.002s 0.012s 04 0 0 1 291 0.002s 0.012s 05 0 0 0 302 0.002s 0.012s 06 0 0 1 290 0.002s 0.012s 07 0 0 1 293 0.002s 0.012s 08 0 0 0 291 0.001s 0.012s 09 0 0 1 298 0.001s 0.012s 10 0 0 1 302 0.002s 0.012s 11 0 0 1 293 0.004s 0.012s 12 0 0 13 273 0.002s 0.011s 13 0 0 1 352 0.003s 0.01s 14 0 0 2 401 0.042s 0.015s 15 0 0 1 564 0.003s 0.012s 16 0 0 1 513 0.003s 0.012s 17 0 0 1 476 0.002s 0.012s 18 0 0 1 346 0.002s 0.012s 19 0 0 2 347 0.002s 0.012s 20 0 0 0 335 0.002s 0.012s 21 0 0 1 351 0.002s 0.012s 22 0 0 1 348 0.002s 0.012s 23 0 0 1 375 0.001s 0.012s Day Hour Count Avg time (sec) Mar 14 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Mar 14 00 1,138.92 kB 1,753.42 kB 01 9,680.82 kB 36,412.64 kB 02 1,013.67 kB 34,326.50 kB 03 968.75 kB 10,396.50 kB 04 989.33 kB 3,630.25 kB 05 968.00 kB 1,735.58 kB 06 966.75 kB 1,184.00 kB 07 998.42 kB 1,137.58 kB 08 970.00 kB 1,097.08 kB 09 978.08 kB 1,011.42 kB 10 1,010.92 kB 1,179.00 kB 11 965.33 kB 1,046.75 kB 12 19,353.09 kB 124,400.45 kB 13 2,761.40 kB 42,417.90 kB 14 1,899.38 kB 14,482.46 kB 15 1,455.08 kB 4,879.50 kB 16 1,994.75 kB 3,980.25 kB 17 1,505.92 kB 3,520.92 kB 18 1,276.67 kB 1,871.92 kB 19 1,565.08 kB 2,347.42 kB 20 1,147.92 kB 3,044.92 kB 21 1,187.08 kB 1,715.83 kB 22 1,115.92 kB 1,286.25 kB 23 1,207.00 kB 1,289.08 kB -
Temporary Files
Size of temporary files
Key values
- 439.70 MiB Temp Files size Peak
- 2026-03-14 17:30:11 Date
Number of temporary files
Key values
- 5 per second Temp Files Peak
- 2026-03-14 14:17:08 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Mar 14 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 50 4.27 GiB 87.54 MiB 14 55 4.71 GiB 87.75 MiB 15 64 5.15 GiB 82.38 MiB 16 45 3.86 GiB 87.93 MiB 17 41 3.50 GiB 87.31 MiB 18 12 747.40 MiB 62.28 MiB 19 14 872.28 MiB 62.31 MiB 20 22 1.34 GiB 62.32 MiB 21 19 1.16 GiB 62.34 MiB 22 12 748.39 MiB 62.37 MiB 23 12 748.64 MiB 62.39 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 192 14.88 GiB 68.09 MiB 90.21 MiB 79.36 MiB with ranked as ( select tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, row_number() over (partition by tenant_key, fingerprint order by collected_at asc) as rn_first, row_number() over (partition by tenant_key, fingerprint order by collected_at desc) as rn_last from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? ), snapshots as ( select tenant_key, fingerprint, max(query) filter (where rn_last = ?) as query, max(collected_at) filter (where rn_last = ?) as last_seen, max(total_time_ms) filter (where rn_first = ?) as first_total_time_ms, max(total_time_ms) filter (where rn_last = ?) as last_total_time_ms, max(calls) filter (where rn_first = ?) as first_calls, max(calls) filter (where rn_last = ?) as last_calls, max(rows_returned) filter (where rn_first = ?) as first_rows_returned, max(rows_returned) filter (where rn_last = ?) as last_rows_returned from ranked group by tenant_key, fingerprint ), deltas as ( select tenant_key, fingerprint, query, last_seen, greatest (coalesce(last_total_time_ms, ?) - coalesce(first_total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(last_calls, ?) - coalesce(first_calls, ?), ?) as calls, greatest (coalesce(last_rows_returned, ?) - coalesce(first_rows_returned, ?), ?) as rows_returned from snapshots ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 17:35:14+01' AND '2026-03-14 17:35:14+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 17:35:18 Duration: 3s340ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 16:00:08+01' AND '2026-03-14 16:00:08+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 16:00:10 Duration: 1s703ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 13:24:58+01' AND '2026-03-14 13:24:58+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 13:25:00 Duration: 1s702ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Queries generating the largest temporary files
Rank Size Query 1 90.21 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 15:37:10 - Queryid: 2744844 ]
2 90.02 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 16:00:10 - Queryid: 2769000 ]
3 89.50 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 13:25:00 - Queryid: 2646297 ]
4 89.45 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 13:25:00 - Queryid: 2646297 ]
5 85.72 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 17:35:18 - Queryid: 5332 ]
6 84.77 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 15:37:10 - Queryid: 2744844 ]
7 84.73 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 17:35:18 - Queryid: 5332 ]
8 84.66 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 14:27:08 - Queryid: 2690048 ]
9 84.62 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 16:25:10 - Queryid: 2787537 ]
10 84.59 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 17:47:12 - Queryid: 9750 ]
11 84.35 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 16:20:11 - Queryid: 2779403 ]
12 84.14 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 16:25:10 - Queryid: 2787537 ]
13 84.11 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 17:25:10 - Queryid: 2841341 ]
14 83.84 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 13:22:00 - Queryid: 2641418 ]
15 83.77 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 13:57:05 - Queryid: 2672098 ]
16 83.75 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 14:55:08 - Queryid: 2705649 ]
17 83.57 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 15:07:09 - Queryid: 2709842 ]
18 83.54 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 14:37:09 - Queryid: 2699486 ]
19 83.48 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 16:55:10 - Queryid: 2818187 ]
20 83.45 MiB WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5;[ Date: 2026-03-14 13:09:52 - Queryid: 2630841 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 14.31 sec Highest CPU-cost vacuum
Table observability.db_top_queries
Database zemm_monitoring - 2026-03-14 11:58:42 Date
- 0 sec Highest CPU-cost analyze
Table
Database zemm_monitoring - Date
Average Autovacuum Duration
Key values
- 14.31 sec Highest CPU-cost vacuum
Table observability.db_top_queries
Database zemm_monitoring - 2026-03-14 11:58:42 Date
Analyzes per table
Key values
- observability.system_metrics (7) Main table analyzed (database zemm_monitoring)
- 24 analyzes Total
Table Number of analyzes zemm_monitoring.observability.system_metrics 7 zemm_produktiv_7.pg_catalog.pg_type 3 zemm_produktiv_7.pg_catalog.pg_attribute 3 zemm_monitoring.observability.metrics_timeseries 2 zemm_produktiv_7.pg_catalog.pg_class 1 zemm_monitoring.observability.nginx_counters 1 template0.pg_catalog.pg_shdepend 1 zemm_monitoring.pg_catalog.pg_attribute 1 zemm_monitoring.observability.db_top_queries 1 zemm_produktiv_8.public.tasks 1 zemm_produktiv_7.pg_catalog.pg_namespace 1 zemm_monitoring.observability.phpfpm_counters 1 zemm_produktiv_7.pg_catalog.pg_depend 1 Total 24 Vacuums per table
Key values
- pg_toast.pg_toast_67431 (9) Main table vacuumed on database zemm_monitoring
- 18 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples zemm_monitoring.pg_toast.pg_toast_67431 9 0 0 0 0 0 0 4,302 1,455 3,290,704 1,412 8,472 zemm_monitoring.pg_toast.pg_toast_2619 2 2 0 0 0 0 0 194 53 323,740 17 57 zemm_produktiv_7.pg_catalog.pg_attribute 1 1 0 0 0 0 0 223 82 44,086 1 2 zemm_produktiv_8.public.tasks 1 1 0 0 0 0 0 40,078 72 2,956,272 1 3 zemm_produktiv_7.pg_catalog.pg_type 1 1 0 0 0 0 0 37 8 11,044 0 0 zemm_monitoring.observability.db_top_queries 1 0 0 0 0 0 0 119,199 55,322 201,167,847 31,918 276,301 zemm_monitoring.observability.metrics_timeseries 1 1 0 0 0 0 0 5,702 2,552 5,618,881 29 453 zemm_produktiv_8.pg_toast.pg_toast_2619 1 1 0 0 0 0 0 230 48 262,573 14 41 zemm_monitoring.pg_catalog.pg_statistic 1 1 0 0 0 0 0 111 39 105,696 22 51 Total 18 8 0 0 0 0 0 170,076 59,631 213,780,843 33,414 285,380 Vacuum throughput per table
Key values
- observability.db_top_queries (14.31) Max CPU elapsed for vacuum on database zemm_monitoring
- pg_toast.pg_toast_67431 (1.913 ms) Max I/O read time for vacuum on database zemm_monitoring
- observability.db_top_queries (0.083 ms) Max I/O write time for vacuum on database zemm_monitoring
I/O timing (ms) CPU (s) Table read write elapsed zemm_monitoring.pg_toast.pg_toast_67431 1.913 0 0.28 zemm_monitoring.pg_toast.pg_toast_2619 0.283 0 0 zemm_produktiv_7.pg_catalog.pg_attribute 0 0.05 0.02 zemm_produktiv_8.public.tasks 0 0 0.56 zemm_produktiv_7.pg_catalog.pg_type 0 0 0 zemm_monitoring.observability.db_top_queries 0 0.083 14.31 zemm_monitoring.observability.metrics_timeseries 0.373 0.058 0.78 zemm_produktiv_8.pg_toast.pg_toast_2619 0 0 0.01 zemm_monitoring.pg_catalog.pg_statistic 1.574 0 0.01 Total 4.143 0.191 15.97 Tuples removed per table
Key values
- public.tasks (53204) Main table with removed tuples on database zemm_produktiv_8
- 87045 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain zemm_produktiv_8.public.tasks 1 1 53,204 56,221 0 0 16,556 zemm_monitoring.observability.metrics_timeseries 1 1 31,954 183,591 0 0 4,052 zemm_produktiv_7.pg_catalog.pg_attribute 1 1 1,344 4,596 0 0 182 zemm_produktiv_7.pg_catalog.pg_type 1 1 180 831 0 0 27 zemm_produktiv_8.pg_toast.pg_toast_2619 1 1 145 292 0 0 106 zemm_monitoring.pg_catalog.pg_statistic 1 1 113 455 0 0 45 zemm_monitoring.pg_toast.pg_toast_2619 2 2 105 143 0 0 63 zemm_monitoring.observability.db_top_queries 1 0 0 3,236,125 0 0 334,622 zemm_monitoring.pg_toast.pg_toast_67431 9 0 0 1,016,604 0 0 170,148 Total 18 8 87,045 4,498,858 0 0 525,801 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed zemm_produktiv_7.pg_catalog.pg_attribute 1 1 1344 0 zemm_produktiv_8.public.tasks 1 1 53204 0 zemm_produktiv_7.pg_catalog.pg_type 1 1 180 0 zemm_monitoring.observability.db_top_queries 1 0 0 0 zemm_monitoring.observability.metrics_timeseries 1 1 31954 0 zemm_produktiv_8.pg_toast.pg_toast_2619 1 1 145 0 zemm_monitoring.pg_catalog.pg_statistic 1 1 113 0 zemm_monitoring.pg_toast.pg_toast_67431 9 0 0 0 zemm_monitoring.pg_toast.pg_toast_2619 2 2 105 0 Total 18 8 87,045 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Mar 14 00 0 1 01 2 1 02 1 0 03 0 0 04 1 0 05 0 0 06 0 0 07 1 0 08 0 0 09 0 1 10 2 1 11 1 0 12 1 0 13 2 2 14 0 1 15 1 7 16 0 3 17 1 2 18 1 1 19 1 1 20 2 1 21 0 0 22 0 1 23 1 1 - 14.31 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
- 2 Total read queries
- 17,803 Total write queries
Queries by database
Key values
- zemm_monitoring Main database
- 17,776 Requests
- 5h44m22s (zemm_monitoring)
- Main time consuming database
Queries by user
Key values
- labanimal Main user
- 141,881 Requests
User Request type Count Duration labanimal Total 141,881 2d6h35m10s copy from 7 15s665ms copy to 68 3m17s cte 161 3m10s ddl 140,940 2d6h11m19s others 168 3m4s select 517 13m38s update 7 7s606ms postgres Total 3,569 1h2m39s copy from 19 54s373ms copy to 108 3m25s cte 5 10s291ms ddl 2,728 45m51s others 679 11m32s update 1 599ms Duration by user
Key values
- 2d6h35m10s (labanimal) Main time consuming user
User Request type Count Duration labanimal Total 141,881 2d6h35m10s copy from 7 15s665ms copy to 68 3m17s cte 161 3m10s ddl 140,940 2d6h11m19s others 168 3m4s select 517 13m38s update 7 7s606ms postgres Total 3,569 1h2m39s copy from 19 54s373ms copy to 108 3m25s cte 5 10s291ms ddl 2,728 45m51s others 679 11m32s update 1 599ms Queries by host
Key values
- unknown Main host
- 141,872 Requests
- 2d6h32m3s (unknown)
- Main time consuming host
Host Request type Count Duration 81.169.238.237 Total 9 3m6s select 2 2m59s update 7 7s606ms [local] Total 3,569 1h2m39s copy from 19 54s373ms copy to 108 3m25s cte 5 10s291ms ddl 2,728 45m51s others 679 11m32s update 1 599ms unknown Total 141,872 2d6h32m3s copy from 7 15s665ms copy to 68 3m17s cte 161 3m10s ddl 140,940 2d6h11m19s others 168 3m4s select 515 10m39s Queries by application
Key values
- unknown Main application
- 17,776 Requests
- 5h44m22s (unknown)
- Main time consuming application
Application Request type Count Duration _desktop_index.php_zemm_produktiv_7_localhost_5432 Total 18 14s678ms cte 18 14s678ms _desktop_index.php_zemm_produktiv_8_localhost_5432 Total 2 1s378ms select 2 1s378ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 Total 1 1s65ms update 1 1s65ms pg_dump Total 8 9s807ms copy to 8 9s807ms unknown Total 17,776 5h44m22s cte 30 48s35ms ddl 17,746 5h43m34s Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-03-14 04:14:01 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 35 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 3s340ms WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 17:35:14+01' AND '2026-03-14 17:35:14+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';[ Date: 2026-03-14 17:35:18 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
2 3s340ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
3 3s340ms CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
4 3s340ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
5 3s340ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
6 3s340ms CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
7 3s340ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
8 3s340ms CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
9 3s340ms CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
10 3s340ms CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
11 3s340ms CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
12 3s340ms CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
13 3s340ms CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
14 3s340ms CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-14 17:36:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
15 3s340ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-03-14 17:37:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
16 3s340ms CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );[ Date: 2026-03-14 17:37:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
17 3s340ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-03-14 17:37:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
18 3s340ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-03-14 17:37:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
19 3s340ms CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-03-14 17:37:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
20 3s340ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-03-14 17:37:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 27m38s 1,438 524ms 3s340ms 1s153ms create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
2 27m38s 1,438 524ms 3s340ms 1s153ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
3 27m38s 1,438 524ms 3s340ms 1s153ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
4 27m38s 1,438 524ms 3s340ms 1s153ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
5 27m38s 1,438 524ms 3s340ms 1s153ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
6 27m38s 1,438 524ms 3s340ms 1s153ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
7 27m38s 1,438 524ms 3s340ms 1s153ms create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
8 27m38s 1,438 524ms 3s340ms 1s153ms create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
9 27m38s 1,438 524ms 3s340ms 1s153ms create schema if not exists observability;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
10 27m38s 1,438 524ms 3s340ms 1s153ms create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
11 27m38s 1,438 524ms 3s340ms 1s153ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
12 27m38s 1,438 524ms 3s340ms 1s153ms create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
13 11m53s 490 524ms 3s340ms 1s455ms create table if not exists observability.system_metrics ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 14 15 12 9s493ms 791ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 11m53s - Times executed: 490 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 16:30:01 Duration: 1s581ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
14 48s35ms 30 780ms 3s340ms 1s601ms with ranked as ( select tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, row_number() over (partition by tenant_key, fingerprint order by collected_at asc) as rn_first, row_number() over (partition by tenant_key, fingerprint order by collected_at desc) as rn_last from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? ), snapshots as ( select tenant_key, fingerprint, max(query) filter (where rn_last = ?) as query, max(collected_at) filter (where rn_last = ?) as last_seen, max(total_time_ms) filter (where rn_first = ?) as first_total_time_ms, max(total_time_ms) filter (where rn_last = ?) as last_total_time_ms, max(calls) filter (where rn_first = ?) as first_calls, max(calls) filter (where rn_last = ?) as last_calls, max(rows_returned) filter (where rn_first = ?) as first_rows_returned, max(rows_returned) filter (where rn_last = ?) as last_rows_returned from ranked group by tenant_key, fingerprint ), deltas as ( select tenant_key, fingerprint, query, last_seen, greatest (coalesce(last_total_time_ms, ?) - coalesce(first_total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(last_calls, ?) - coalesce(first_calls, ?), ?) as calls, greatest (coalesce(last_rows_returned, ?) - coalesce(first_rows_returned, ?), ?) as rows_returned from snapshots ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 14 13 6 9s482ms 1s580ms 14 4 6s213ms 1s553ms 15 4 6s230ms 1s557ms 16 7 11s145ms 1s592ms 17 9 14s964ms 1s662ms [ User: labanimal - Total duration: 48s35ms - Times executed: 30 ]
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 17:35:14+01' AND '2026-03-14 17:35:14+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 17:35:18 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 16:00:08+01' AND '2026-03-14 16:00:08+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 16:00:10 Duration: 1s703ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 13:24:58+01' AND '2026-03-14 13:24:58+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 13:25:00 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
15 14s678ms 18 798ms 834ms 815ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 14 13 4 3s228ms 807ms 14 1 802ms 802ms 15 6 4s904ms 817ms 16 5 4s107ms 821ms 17 2 1s636ms 818ms [ User: labanimal - Total duration: 14s678ms - Times executed: 18 ]
[ Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 - Total duration: 14s678ms - Times executed: 18 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 16:40:25 Duration: 834ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 15:36:31 Duration: 830ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 13:36:21 Duration: 825ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
16 2s408ms 1 2s408ms 2s408ms 2s408ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 14 23 1 2s408ms 2s408ms [ User: postgres - Total duration: 2s408ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s408ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-03-14 23:55:09 Duration: 2s408ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
17 1s725ms 1 1s725ms 1s725ms 1s725ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 14 23 1 1s725ms 1s725ms [ User: postgres - Total duration: 1s725ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s725ms - Times executed: 1 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-03-14 23:55:12 Duration: 1s725ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
18 1s440ms 1 1s440ms 1s440ms 1s440ms copy public.tasks (id, name, "order", parent, method, "entryValue", "returnedValue", agent, done, deadline, loc, instructions, comment, owner, active, deadline_notified, deleted, editor, task_status, link, prio_owner, prio_editor, prio_agent, time_issued, issuer, time_completed, completed_by) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 14 23 1 1s440ms 1s440ms [ User: postgres - Total duration: 1s440ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s440ms - Times executed: 1 ]
-
COPY public.tasks (id, name, "order", parent, method, "entryValue", "returnedValue", agent, done, deadline, loc, instructions, comment, owner, active, deadline_notified, deleted, editor, task_status, link, prio_owner, prio_editor, prio_agent, time_issued, issuer, time_completed, completed_by) TO stdout;
Date: 2026-03-14 23:55:14 Duration: 1s440ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
19 1s380ms 1 1s380ms 1s380ms 1s380ms copy public.animals_search_mview (id, name, animal_id, deleted, alive, birth_date, arrival_date, death_date, outgoing_date, cage, comments, sterile, breeding, fate, last_mating, last_mating_date, breeding_cage, sex, strain, line, gene_1_info, gene_1_type, gene_2_info, gene_2_type, gene_3_info, gene_3_type, gene_4_info, gene_4_type, gene_5_info, gene_5_type, backcross, generation, project, project_name, species, species_name, cage_name, location, location_name, dam, dam_name, dam_id, sire, sire_name, sire_id, cohort, litter, rfid, owner, editor, tourist, breeding_status, workgroup_infos, experiment, experiment_name) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 14 23 1 1s380ms 1s380ms [ User: postgres - Total duration: 1s380ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s380ms - Times executed: 1 ]
-
COPY public.animals_search_mview (id, name, animal_id, deleted, alive, birth_date, arrival_date, death_date, outgoing_date, cage, comments, sterile, breeding, fate, last_mating, last_mating_date, breeding_cage, sex, strain, line, gene_1_info, gene_1_type, gene_2_info, gene_2_type, gene_3_info, gene_3_type, gene_4_info, gene_4_type, gene_5_info, gene_5_type, backcross, generation, project, project_name, species, species_name, cage_name, location, location_name, dam, dam_name, dam_id, sire, sire_name, sire_id, cohort, litter, rfid, owner, editor, tourist, breeding_status, workgroup_infos, experiment, experiment_name) TO stdout;
Date: 2026-03-14 23:55:05 Duration: 1s380ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
20 1s227ms 1 1s227ms 1s227ms 1s227ms copy public.animals (id, species, transgen, "homeCage", tourist, editor, owner, comments, pregnant, name, sex, "standardDescription", "parentFemale", "parentMale", "parentFoster", colour, "plannedUseFor", deleted, generation, chimare, "birthDate", "arrivalDate", "outgoingDate", "deathDate", breedstatus_2, "healthState", breeder, restrictions, "geneStatus", "geneFlanking", "geneDeleted", "fromOrder_2", "group", "fromOrder", strain, "breedStatus", "FEMnumber", genotype, inbreeding, identification, jax, "KOgene", "feedingClass", dummy_gen_info, breeding, sterile, project, dummy_line_info, dummy_strain_info, "bredWith", "curCage", dummy_backcross_info, fate, "fateComment", alive, reciever, "animalID", litter, weight_at_arrival, cohort, gen_2_info, gen_3_info, gen_4_info, gen_5_info, gen_1_typ, gen_2_typ, gen_3_typ, gen_4_typ, gen_5_typ, "latestMatingDate", "latestMating", genecomment, recycle) to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 14 23 1 1s227ms 1s227ms [ User: postgres - Total duration: 1s227ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s227ms - Times executed: 1 ]
-
COPY public.animals (id, species, transgen, "homeCage", tourist, editor, owner, comments, pregnant, name, sex, "standardDescription", "parentFemale", "parentMale", "parentFoster", colour, "plannedUseFor", deleted, generation, chimare, "birthDate", "arrivalDate", "outgoingDate", "deathDate", breedstatus_2, "healthState", breeder, restrictions, "geneStatus", "geneFlanking", "geneDeleted", "fromOrder_2", "group", "fromOrder", strain, "breedStatus", "FEMnumber", genotype, inbreeding, identification, jax, "KOgene", "feedingClass", dummy_gen_info, breeding, sterile, project, dummy_line_info, dummy_strain_info, "bredWith", "curCage", dummy_backcross_info, fate, "fateComment", alive, reciever, "animalID", litter, weight_at_arrival, cohort, gen_2_info, gen_3_info, gen_4_info, gen_5_info, gen_1_typ, gen_2_typ, gen_3_typ, gen_4_typ, gen_5_typ, "latestMatingDate", "latestMating", genecomment, recycle) TO stdout;
Date: 2026-03-14 23:55:04 Duration: 1s227ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,438 27m38s 524ms 3s340ms 1s153ms create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
2 1,438 27m38s 524ms 3s340ms 1s153ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
3 1,438 27m38s 524ms 3s340ms 1s153ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
4 1,438 27m38s 524ms 3s340ms 1s153ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
5 1,438 27m38s 524ms 3s340ms 1s153ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
6 1,438 27m38s 524ms 3s340ms 1s153ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
7 1,438 27m38s 524ms 3s340ms 1s153ms create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
8 1,438 27m38s 524ms 3s340ms 1s153ms create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
9 1,438 27m38s 524ms 3s340ms 1s153ms create schema if not exists observability;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
10 1,438 27m38s 524ms 3s340ms 1s153ms create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
11 1,438 27m38s 524ms 3s340ms 1s153ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
12 1,438 27m38s 524ms 3s340ms 1s153ms create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
13 490 11m53s 524ms 3s340ms 1s455ms create table if not exists observability.system_metrics ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 14 15 12 9s493ms 791ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 11m53s - Times executed: 490 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 16:30:01 Duration: 1s581ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
14 30 48s35ms 780ms 3s340ms 1s601ms with ranked as ( select tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, row_number() over (partition by tenant_key, fingerprint order by collected_at asc) as rn_first, row_number() over (partition by tenant_key, fingerprint order by collected_at desc) as rn_last from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? ), snapshots as ( select tenant_key, fingerprint, max(query) filter (where rn_last = ?) as query, max(collected_at) filter (where rn_last = ?) as last_seen, max(total_time_ms) filter (where rn_first = ?) as first_total_time_ms, max(total_time_ms) filter (where rn_last = ?) as last_total_time_ms, max(calls) filter (where rn_first = ?) as first_calls, max(calls) filter (where rn_last = ?) as last_calls, max(rows_returned) filter (where rn_first = ?) as first_rows_returned, max(rows_returned) filter (where rn_last = ?) as last_rows_returned from ranked group by tenant_key, fingerprint ), deltas as ( select tenant_key, fingerprint, query, last_seen, greatest (coalesce(last_total_time_ms, ?) - coalesce(first_total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(last_calls, ?) - coalesce(first_calls, ?), ?) as calls, greatest (coalesce(last_rows_returned, ?) - coalesce(first_rows_returned, ?), ?) as rows_returned from snapshots ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 14 13 6 9s482ms 1s580ms 14 4 6s213ms 1s553ms 15 4 6s230ms 1s557ms 16 7 11s145ms 1s592ms 17 9 14s964ms 1s662ms [ User: labanimal - Total duration: 48s35ms - Times executed: 30 ]
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 17:35:14+01' AND '2026-03-14 17:35:14+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 17:35:18 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 16:00:08+01' AND '2026-03-14 16:00:08+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 16:00:10 Duration: 1s703ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 13:24:58+01' AND '2026-03-14 13:24:58+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 13:25:00 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
15 18 14s678ms 798ms 834ms 815ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 14 13 4 3s228ms 807ms 14 1 802ms 802ms 15 6 4s904ms 817ms 16 5 4s107ms 821ms 17 2 1s636ms 818ms [ User: labanimal - Total duration: 14s678ms - Times executed: 18 ]
[ Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 - Total duration: 14s678ms - Times executed: 18 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 16:40:25 Duration: 834ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 15:36:31 Duration: 830ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 13:36:21 Duration: 825ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
16 1 2s408ms 2s408ms 2s408ms 2s408ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 14 23 1 2s408ms 2s408ms [ User: postgres - Total duration: 2s408ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s408ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-03-14 23:55:09 Duration: 2s408ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
17 1 1s725ms 1s725ms 1s725ms 1s725ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 14 23 1 1s725ms 1s725ms [ User: postgres - Total duration: 1s725ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s725ms - Times executed: 1 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-03-14 23:55:12 Duration: 1s725ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
18 1 1s440ms 1s440ms 1s440ms 1s440ms copy public.tasks (id, name, "order", parent, method, "entryValue", "returnedValue", agent, done, deadline, loc, instructions, comment, owner, active, deadline_notified, deleted, editor, task_status, link, prio_owner, prio_editor, prio_agent, time_issued, issuer, time_completed, completed_by) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 14 23 1 1s440ms 1s440ms [ User: postgres - Total duration: 1s440ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s440ms - Times executed: 1 ]
-
COPY public.tasks (id, name, "order", parent, method, "entryValue", "returnedValue", agent, done, deadline, loc, instructions, comment, owner, active, deadline_notified, deleted, editor, task_status, link, prio_owner, prio_editor, prio_agent, time_issued, issuer, time_completed, completed_by) TO stdout;
Date: 2026-03-14 23:55:14 Duration: 1s440ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
19 1 1s380ms 1s380ms 1s380ms 1s380ms copy public.animals_search_mview (id, name, animal_id, deleted, alive, birth_date, arrival_date, death_date, outgoing_date, cage, comments, sterile, breeding, fate, last_mating, last_mating_date, breeding_cage, sex, strain, line, gene_1_info, gene_1_type, gene_2_info, gene_2_type, gene_3_info, gene_3_type, gene_4_info, gene_4_type, gene_5_info, gene_5_type, backcross, generation, project, project_name, species, species_name, cage_name, location, location_name, dam, dam_name, dam_id, sire, sire_name, sire_id, cohort, litter, rfid, owner, editor, tourist, breeding_status, workgroup_infos, experiment, experiment_name) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 14 23 1 1s380ms 1s380ms [ User: postgres - Total duration: 1s380ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s380ms - Times executed: 1 ]
-
COPY public.animals_search_mview (id, name, animal_id, deleted, alive, birth_date, arrival_date, death_date, outgoing_date, cage, comments, sterile, breeding, fate, last_mating, last_mating_date, breeding_cage, sex, strain, line, gene_1_info, gene_1_type, gene_2_info, gene_2_type, gene_3_info, gene_3_type, gene_4_info, gene_4_type, gene_5_info, gene_5_type, backcross, generation, project, project_name, species, species_name, cage_name, location, location_name, dam, dam_name, dam_id, sire, sire_name, sire_id, cohort, litter, rfid, owner, editor, tourist, breeding_status, workgroup_infos, experiment, experiment_name) TO stdout;
Date: 2026-03-14 23:55:05 Duration: 1s380ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
20 1 1s227ms 1s227ms 1s227ms 1s227ms copy public.animals (id, species, transgen, "homeCage", tourist, editor, owner, comments, pregnant, name, sex, "standardDescription", "parentFemale", "parentMale", "parentFoster", colour, "plannedUseFor", deleted, generation, chimare, "birthDate", "arrivalDate", "outgoingDate", "deathDate", breedstatus_2, "healthState", breeder, restrictions, "geneStatus", "geneFlanking", "geneDeleted", "fromOrder_2", "group", "fromOrder", strain, "breedStatus", "FEMnumber", genotype, inbreeding, identification, jax, "KOgene", "feedingClass", dummy_gen_info, breeding, sterile, project, dummy_line_info, dummy_strain_info, "bredWith", "curCage", dummy_backcross_info, fate, "fateComment", alive, reciever, "animalID", litter, weight_at_arrival, cohort, gen_2_info, gen_3_info, gen_4_info, gen_5_info, gen_1_typ, gen_2_typ, gen_3_typ, gen_4_typ, gen_5_typ, "latestMatingDate", "latestMating", genecomment, recycle) to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 14 23 1 1s227ms 1s227ms [ User: postgres - Total duration: 1s227ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s227ms - Times executed: 1 ]
-
COPY public.animals (id, species, transgen, "homeCage", tourist, editor, owner, comments, pregnant, name, sex, "standardDescription", "parentFemale", "parentMale", "parentFoster", colour, "plannedUseFor", deleted, generation, chimare, "birthDate", "arrivalDate", "outgoingDate", "deathDate", breedstatus_2, "healthState", breeder, restrictions, "geneStatus", "geneFlanking", "geneDeleted", "fromOrder_2", "group", "fromOrder", strain, "breedStatus", "FEMnumber", genotype, inbreeding, identification, jax, "KOgene", "feedingClass", dummy_gen_info, breeding, sterile, project, dummy_line_info, dummy_strain_info, "bredWith", "curCage", dummy_backcross_info, fate, "fateComment", alive, reciever, "animalID", litter, weight_at_arrival, cohort, gen_2_info, gen_3_info, gen_4_info, gen_5_info, gen_1_typ, gen_2_typ, gen_3_typ, gen_4_typ, gen_5_typ, "latestMatingDate", "latestMating", genecomment, recycle) TO stdout;
Date: 2026-03-14 23:55:04 Duration: 1s227ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2s408ms 2s408ms 2s408ms 1 2s408ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 14 23 1 2s408ms 2s408ms [ User: postgres - Total duration: 2s408ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s408ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-03-14 23:55:09 Duration: 2s408ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
2 1s725ms 1s725ms 1s725ms 1 1s725ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 14 23 1 1s725ms 1s725ms [ User: postgres - Total duration: 1s725ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s725ms - Times executed: 1 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-03-14 23:55:12 Duration: 1s725ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
3 780ms 3s340ms 1s601ms 30 48s35ms with ranked as ( select tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, row_number() over (partition by tenant_key, fingerprint order by collected_at asc) as rn_first, row_number() over (partition by tenant_key, fingerprint order by collected_at desc) as rn_last from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? ), snapshots as ( select tenant_key, fingerprint, max(query) filter (where rn_last = ?) as query, max(collected_at) filter (where rn_last = ?) as last_seen, max(total_time_ms) filter (where rn_first = ?) as first_total_time_ms, max(total_time_ms) filter (where rn_last = ?) as last_total_time_ms, max(calls) filter (where rn_first = ?) as first_calls, max(calls) filter (where rn_last = ?) as last_calls, max(rows_returned) filter (where rn_first = ?) as first_rows_returned, max(rows_returned) filter (where rn_last = ?) as last_rows_returned from ranked group by tenant_key, fingerprint ), deltas as ( select tenant_key, fingerprint, query, last_seen, greatest (coalesce(last_total_time_ms, ?) - coalesce(first_total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(last_calls, ?) - coalesce(first_calls, ?), ?) as calls, greatest (coalesce(last_rows_returned, ?) - coalesce(first_rows_returned, ?), ?) as rows_returned from snapshots ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 14 13 6 9s482ms 1s580ms 14 4 6s213ms 1s553ms 15 4 6s230ms 1s557ms 16 7 11s145ms 1s592ms 17 9 14s964ms 1s662ms [ User: labanimal - Total duration: 48s35ms - Times executed: 30 ]
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 17:35:14+01' AND '2026-03-14 17:35:14+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 17:35:18 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 16:00:08+01' AND '2026-03-14 16:00:08+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 16:00:10 Duration: 1s703ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-03-07 13:24:58+01' AND '2026-03-14 13:24:58+01' ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST (COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST (COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-03-14 13:25:00 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
4 524ms 3s340ms 1s455ms 490 11m53s create table if not exists observability.system_metrics ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 14 15 12 9s493ms 791ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 11m53s - Times executed: 490 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 16:30:01 Duration: 1s581ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
5 1s440ms 1s440ms 1s440ms 1 1s440ms copy public.tasks (id, name, "order", parent, method, "entryValue", "returnedValue", agent, done, deadline, loc, instructions, comment, owner, active, deadline_notified, deleted, editor, task_status, link, prio_owner, prio_editor, prio_agent, time_issued, issuer, time_completed, completed_by) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 14 23 1 1s440ms 1s440ms [ User: postgres - Total duration: 1s440ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s440ms - Times executed: 1 ]
-
COPY public.tasks (id, name, "order", parent, method, "entryValue", "returnedValue", agent, done, deadline, loc, instructions, comment, owner, active, deadline_notified, deleted, editor, task_status, link, prio_owner, prio_editor, prio_agent, time_issued, issuer, time_completed, completed_by) TO stdout;
Date: 2026-03-14 23:55:14 Duration: 1s440ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
6 1s380ms 1s380ms 1s380ms 1 1s380ms copy public.animals_search_mview (id, name, animal_id, deleted, alive, birth_date, arrival_date, death_date, outgoing_date, cage, comments, sterile, breeding, fate, last_mating, last_mating_date, breeding_cage, sex, strain, line, gene_1_info, gene_1_type, gene_2_info, gene_2_type, gene_3_info, gene_3_type, gene_4_info, gene_4_type, gene_5_info, gene_5_type, backcross, generation, project, project_name, species, species_name, cage_name, location, location_name, dam, dam_name, dam_id, sire, sire_name, sire_id, cohort, litter, rfid, owner, editor, tourist, breeding_status, workgroup_infos, experiment, experiment_name) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 14 23 1 1s380ms 1s380ms [ User: postgres - Total duration: 1s380ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s380ms - Times executed: 1 ]
-
COPY public.animals_search_mview (id, name, animal_id, deleted, alive, birth_date, arrival_date, death_date, outgoing_date, cage, comments, sterile, breeding, fate, last_mating, last_mating_date, breeding_cage, sex, strain, line, gene_1_info, gene_1_type, gene_2_info, gene_2_type, gene_3_info, gene_3_type, gene_4_info, gene_4_type, gene_5_info, gene_5_type, backcross, generation, project, project_name, species, species_name, cage_name, location, location_name, dam, dam_name, dam_id, sire, sire_name, sire_id, cohort, litter, rfid, owner, editor, tourist, breeding_status, workgroup_infos, experiment, experiment_name) TO stdout;
Date: 2026-03-14 23:55:05 Duration: 1s380ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
7 1s227ms 1s227ms 1s227ms 1 1s227ms copy public.animals (id, species, transgen, "homeCage", tourist, editor, owner, comments, pregnant, name, sex, "standardDescription", "parentFemale", "parentMale", "parentFoster", colour, "plannedUseFor", deleted, generation, chimare, "birthDate", "arrivalDate", "outgoingDate", "deathDate", breedstatus_2, "healthState", breeder, restrictions, "geneStatus", "geneFlanking", "geneDeleted", "fromOrder_2", "group", "fromOrder", strain, "breedStatus", "FEMnumber", genotype, inbreeding, identification, jax, "KOgene", "feedingClass", dummy_gen_info, breeding, sterile, project, dummy_line_info, dummy_strain_info, "bredWith", "curCage", dummy_backcross_info, fate, "fateComment", alive, reciever, "animalID", litter, weight_at_arrival, cohort, gen_2_info, gen_3_info, gen_4_info, gen_5_info, gen_1_typ, gen_2_typ, gen_3_typ, gen_4_typ, gen_5_typ, "latestMatingDate", "latestMating", genecomment, recycle) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 14 23 1 1s227ms 1s227ms [ User: postgres - Total duration: 1s227ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s227ms - Times executed: 1 ]
-
COPY public.animals (id, species, transgen, "homeCage", tourist, editor, owner, comments, pregnant, name, sex, "standardDescription", "parentFemale", "parentMale", "parentFoster", colour, "plannedUseFor", deleted, generation, chimare, "birthDate", "arrivalDate", "outgoingDate", "deathDate", breedstatus_2, "healthState", breeder, restrictions, "geneStatus", "geneFlanking", "geneDeleted", "fromOrder_2", "group", "fromOrder", strain, "breedStatus", "FEMnumber", genotype, inbreeding, identification, jax, "KOgene", "feedingClass", dummy_gen_info, breeding, sterile, project, dummy_line_info, dummy_strain_info, "bredWith", "curCage", dummy_backcross_info, fate, "fateComment", alive, reciever, "animalID", litter, weight_at_arrival, cohort, gen_2_info, gen_3_info, gen_4_info, gen_5_info, gen_1_typ, gen_2_typ, gen_3_typ, gen_4_typ, gen_5_typ, "latestMatingDate", "latestMating", genecomment, recycle) TO stdout;
Date: 2026-03-14 23:55:04 Duration: 1s227ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
8 524ms 3s340ms 1s153ms 1,438 27m38s create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
9 524ms 3s340ms 1s153ms 1,438 27m38s create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
10 524ms 3s340ms 1s153ms 1,438 27m38s create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
11 524ms 3s340ms 1s153ms 1,438 27m38s create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
12 524ms 3s340ms 1s153ms 1,438 27m38s create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
13 524ms 3s340ms 1s153ms 1,438 27m38s create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
14 524ms 3s340ms 1s153ms 1,438 27m38s create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
15 524ms 3s340ms 1s153ms 1,438 27m38s create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
16 524ms 3s340ms 1s153ms 1,438 27m38s create schema if not exists observability;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
17 524ms 3s340ms 1s153ms 1,438 27m38s create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
18 524ms 3s340ms 1s153ms 1,438 27m38s create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
19 524ms 3s340ms 1s153ms 1,438 27m38s create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 14 00 60 0ms 0ms 01 60 30s895ms 514ms 02 60 1m3s 1s65ms 03 60 1m3s 1s65ms 04 60 1m3s 1s65ms 05 60 1m3s 1s65ms 06 60 1m3s 1s65ms 07 60 1m3s 1s65ms 08 60 1m3s 1s65ms 09 60 1m3s 1s65ms 10 60 1m3s 1s65ms 11 60 1m3s 1s65ms 12 60 1m3s 1s65ms 13 60 1m25s 1s427ms 14 60 1m6s 1s101ms 15 60 1m8s 1s149ms 16 60 1m6s 1s108ms 17 58 1m38s 1s692ms 18 60 1m30s 1s508ms 19 60 1m30s 1s508ms 20 60 1m30s 1s508ms 21 60 1m30s 1s508ms 22 60 1m30s 1s508ms 23 60 1m26s 1s442ms [ User: labanimal - Total duration: 27m38s - Times executed: 1347 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:47:01 Duration: 3s340ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 13:31:01 Duration: 1s702ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-03-14 17:01:01 Duration: 1s678ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
20 798ms 834ms 815ms 18 14s678ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 14 13 4 3s228ms 807ms 14 1 802ms 802ms 15 6 4s904ms 817ms 16 5 4s107ms 821ms 17 2 1s636ms 818ms [ User: labanimal - Total duration: 14s678ms - Times executed: 18 ]
[ Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 - Total duration: 14s678ms - Times executed: 18 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 16:40:25 Duration: 834ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 15:36:31 Duration: 830ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 1) THEN TRUE WHEN user_is_tgm (dam.editor, 1) THEN TRUE WHEN user_is_tgm (dam.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 1) THEN TRUE WHEN user_is_tgm (sire.editor, 1) THEN TRUE WHEN user_is_tgm (sire.tourist, 1) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-03-14 13:36:21 Duration: 825ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 86,011 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 2 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 189 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 76 Max number of times the same event was reported
- 191 Total events found
Rank Times reported Error 1 76 FATAL: terminating background worker "..." due to administrator command
Times Reported Most Frequent Error / Event #1
Day Hour Count Mar 14 13 16 14 28 15 24 16 8 - FATAL: terminating background worker "parallel worker" due to administrator command
- FATAL: terminating background worker "parallel worker" due to administrator command
- FATAL: terminating background worker "parallel worker" due to administrator command
Statement: WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST(COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST(COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST(COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5
Date: 2026-03-14 13:16:58 Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Statement: WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST(COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST(COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST(COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5
Date: 2026-03-14 13:16:58 Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Statement: WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST(COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST(COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST(COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5
Date: 2026-03-14 13:16:58 Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
2 33 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #2
Day Hour Count Mar 14 13 5 14 3 15 6 16 10 17 9 - LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
Date: 2026-03-14 13:11:50 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Date: 2026-03-14 13:27:00 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Date: 2026-03-14 13:32:00 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
3 31 FATAL: database "..." does not exist
Times Reported Most Frequent Error / Event #3
Day Hour Count Mar 14 10 2 13 2 16 17 17 10 - FATAL: database "monitoring" does not exist
- FATAL: database "monitoring" does not exist
- FATAL: database "monitoring" does not exist
Date: 2026-03-14 10:29:58 Database: monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Date: 2026-03-14 10:29:58 Database: monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Date: 2026-03-14 13:18:35 Database: monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
4 23 LOG: could not send data to client: Broken pipe
Times Reported Most Frequent Error / Event #4
Day Hour Count Mar 14 13 5 14 7 15 6 16 5 - LOG: could not send data to client: Broken pipe
- LOG: could not send data to client: Broken pipe
- LOG: could not send data to client: Broken pipe
Statement: WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST(COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST(COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST(COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5
Date: 2026-03-14 13:16:58 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Statement: WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST(COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST(COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST(COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5
Date: 2026-03-14 13:22:00 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Statement: SELECT u.id AS user_id, u."name" AS username, COALESCE(NULLIF(r.role, ''), 'Ohne Rolle') AS role_name, COALESCE(msa.screen, 'unbekannt') AS screen, COALESCE(msa.command, split_part(COALESCE(msa.screen, 'unbekannt'), '/', 1), 'unbekannt') AS screen_group, MAX(lt.timestamp) AS last_login, MAX(CASE WHEN lt.logout IS NULL THEN NULL::timestamp WHEN lt.logout >= lt.timestamp::time THEN date_trunc('day', lt.timestamp) + lt.logout ELSE date_trunc('day', lt.timestamp) + lt.logout + INTERVAL '1 day' END) AS last_activity, COALESCE( SUM( CASE WHEN lt.timestamp IS NULL THEN 0 ELSE GREATEST( EXTRACT( EPOCH FROM ( LEAST(COALESCE(CASE WHEN lt.logout IS NULL THEN NULL::timestamp WHEN lt.logout >= lt.timestamp::time THEN date_trunc('day', lt.timestamp) + lt.logout ELSE date_trunc('day', lt.timestamp) + lt.logout + INTERVAL '1 day' END, CURRENT_TIMESTAMP::timestamp), $1::timestamp) - lt.timestamp ) ), 0 ) END ), 0 ) AS active_duration_seconds, COUNT(*) AS total_logins FROM login_tracker lt INNER JOIN users u ON u.id = lt.user LEFT JOIN roles r ON r.id = u.role AND NOT(r.deleted) LEFT JOIN monitoring_session_activity msa ON msa.user_id = u.id WHERE lt.timestamp BETWEEN $2 AND $3 GROUP BY u.id, u."name", r.role, msa.screen, msa.command ORDER BY active_duration_seconds DESC, total_logins DESC
Date: 2026-03-14 13:32:01 Database: zemm_produktiv_8 Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
5 23 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #5
Day Hour Count Mar 14 13 5 14 7 15 6 16 5 - FATAL: connection to client lost
- FATAL: connection to client lost
- FATAL: connection to client lost
Statement: WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST(COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST(COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST(COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5
Date: 2026-03-14 13:16:58 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Statement: WITH ranked AS ( SELECT tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at ASC) AS rn_first, ROW_NUMBER() OVER (PARTITION BY tenant_key, fingerprint ORDER BY collected_at DESC) AS rn_last FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at BETWEEN $2 AND $3 ), snapshots AS ( SELECT tenant_key, fingerprint, MAX(query) FILTER (WHERE rn_last = 1) AS query, MAX(collected_at) FILTER (WHERE rn_last = 1) AS last_seen, MAX(total_time_ms) FILTER (WHERE rn_first = 1) AS first_total_time_ms, MAX(total_time_ms) FILTER (WHERE rn_last = 1) AS last_total_time_ms, MAX(calls) FILTER (WHERE rn_first = 1) AS first_calls, MAX(calls) FILTER (WHERE rn_last = 1) AS last_calls, MAX(rows_returned) FILTER (WHERE rn_first = 1) AS first_rows_returned, MAX(rows_returned) FILTER (WHERE rn_last = 1) AS last_rows_returned FROM ranked GROUP BY tenant_key, fingerprint ), deltas AS ( SELECT tenant_key, fingerprint, query, last_seen, GREATEST(COALESCE(last_total_time_ms, 0) - COALESCE(first_total_time_ms, 0), 0) AS total_time_ms, GREATEST(COALESCE(last_calls, 0) - COALESCE(first_calls, 0), 0) AS calls, GREATEST(COALESCE(last_rows_returned, 0) - COALESCE(first_rows_returned, 0), 0) AS rows_returned FROM snapshots ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $4 OFFSET $5
Date: 2026-03-14 13:22:00 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Statement: SELECT u.id AS user_id, u."name" AS username, COALESCE(NULLIF(r.role, ''), 'Ohne Rolle') AS role_name, COALESCE(msa.screen, 'unbekannt') AS screen, COALESCE(msa.command, split_part(COALESCE(msa.screen, 'unbekannt'), '/', 1), 'unbekannt') AS screen_group, MAX(lt.timestamp) AS last_login, MAX(CASE WHEN lt.logout IS NULL THEN NULL::timestamp WHEN lt.logout >= lt.timestamp::time THEN date_trunc('day', lt.timestamp) + lt.logout ELSE date_trunc('day', lt.timestamp) + lt.logout + INTERVAL '1 day' END) AS last_activity, COALESCE( SUM( CASE WHEN lt.timestamp IS NULL THEN 0 ELSE GREATEST( EXTRACT( EPOCH FROM ( LEAST(COALESCE(CASE WHEN lt.logout IS NULL THEN NULL::timestamp WHEN lt.logout >= lt.timestamp::time THEN date_trunc('day', lt.timestamp) + lt.logout ELSE date_trunc('day', lt.timestamp) + lt.logout + INTERVAL '1 day' END, CURRENT_TIMESTAMP::timestamp), $1::timestamp) - lt.timestamp ) ), 0 ) END ), 0 ) AS active_duration_seconds, COUNT(*) AS total_logins FROM login_tracker lt INNER JOIN users u ON u.id = lt.user LEFT JOIN roles r ON r.id = u.role AND NOT(r.deleted) LEFT JOIN monitoring_session_activity msa ON msa.user_id = u.id WHERE lt.timestamp BETWEEN $2 AND $3 GROUP BY u.id, u."name", r.role, msa.screen, msa.command ORDER BY active_duration_seconds DESC, total_logins DESC
Date: 2026-03-14 13:32:01 Database: zemm_produktiv_8 Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
6 2 FATAL: terminating connection due to administrator command
Times Reported Most Frequent Error / Event #6
Day Hour Count Mar 14 17 2 - FATAL: terminating connection due to administrator command
- FATAL: terminating connection due to administrator command
Date: 2026-03-14 17:30:40 Database: zemm_produktiv_7 Application: DBeaver 26.0.0 - Main 'zemm_produktiv_7' User: labanimal Remote: 94.31.109.76 Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Date: 2026-03-14 17:30:40 Database: zemm_produktiv_8 Application: DBeaver 26.0.0 - Main 'zemm_produktiv_8' User: labanimal Remote: 94.31.109.76 Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
7 2 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #7
Day Hour Count Mar 14 17 2 - ERROR: relation "bucardo.bucardo_config" does not exist
- ERROR: relation "bucardo.bucardo_config" does not exist
Statement: SELECT setting FROM bucardo.bucardo_config WHERE LOWER(name) = $1
Date: 2026-03-14 17:30:40 Database: bucardo Application: User: bucardo Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_000000.csv
Statement: SELECT setting FROM bucardo.bucardo_config WHERE LOWER(name) = $1
Date: 2026-03-14 17:32:18 Database: bucardo Application: User: bucardo Remote: Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv
8 1 LOG: database system was shut down at ...
Times Reported Most Frequent Error / Event #8
Day Hour Count Mar 14 17 1 - LOG: database system was shut down at 2026-03-14 17:30:40 CET
Date: 2026-03-14 17:32:13 Log file: /var/log/postgresql/postgresql-2026-03-14_173213.csv