-
Global information
- Generated on Thu Apr 30 06:06:58 2026
- Log file: /var/log/postgresql/postgresql-2026-03-25_000000.csv, ..., /var/log/postgresql/postgresql-2026-04-30_000000.csv
- Parsed 273,081 log entries in 6m57s
- Log start from 2026-04-25 00:00:01 to 2026-04-25 23:59:03
-
Overview
Global Stats
- 1,625 Number of unique normalized queries
- 26,565 Number of queries
- 1d8h40m29s Total query duration
- 2026-04-25 00:00:01 First query
- 2026-04-25 23:59:02 Last query
- 793 queries/s at 2026-04-25 14:19:26 Query peak
- 1d8h40m29s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 1d8h40m29s Execute total duration
- 502 Number of events
- 8 Number of unique normalized events
- 479 Max number of times the same event was reported
- 0 Number of cancellation
- 54 Total number of automatic vacuums
- 95 Total number of automatic analyzes
- 1,261 Number temporary file
- 789.71 MiB Max size of temporary file
- 58.26 MiB Average size of temporary file
- 23,127 Total number of sessions
- 8 sessions at 2026-04-25 21:13:20 Session peak
- 1h37m56s Total duration of sessions
- 254ms Average duration of sessions
- 1 Average queries per session
- 5s86ms Average queries duration per session
- 0ms Average idle time per session
- 23,606 Total number of connections
- 41 connections/s at 2026-04-25 23:21:15 Connection peak
- 7 Total number of databases
SQL Traffic
Key values
- 793 queries/s Query Peak
- 2026-04-25 14:19:26 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-04-25 17:02:47 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 560 queries/s Query Peak
- 2026-04-25 14:19:26 Date
Queries duration
Key values
- 1d8h40m29s 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) Apr 25 00 1,217 0ms 4s254ms 3s742ms 1m15s 1m16s 8m5s 01 1,032 1s54ms 4s287ms 4s109ms 1m14s 1m15s 1m15s 02 1,020 4s287ms 4s287ms 4s287ms 1m12s 1m12s 1m12s 03 1,020 4s287ms 4s287ms 4s287ms 1m12s 1m12s 1m12s 04 1,020 4s287ms 4s287ms 4s287ms 1m12s 1m12s 1m12s 05 1,020 4s287ms 4s287ms 4s287ms 1m12s 1m12s 1m12s 06 1,020 4s287ms 4s287ms 4s287ms 1m12s 1m12s 1m12s 07 1,104 4s287ms 4s287ms 4s287ms 1m12s 1m12s 7m13s 08 1,021 637ms 4s287ms 1s123ms 1m12s 1m12s 1m13s 09 1,020 637ms 637ms 637ms 10s834ms 10s834ms 10s834ms 10 1,034 637ms 5s114ms 2s603ms 1m13s 1m15s 1m27s 11 1,036 3s928ms 4s130ms 4s39ms 1m13s 1m13s 1m20s 12 1,035 766ms 4s366ms 4s43ms 1m14s 1m14s 1m18s 13 1,035 764ms 4s163ms 3s839ms 1m13s 1m13s 1m14s 14 2,501 508ms 6s732ms 2s136ms 1m20s 1m24s 11m52s 15 1,037 4s29ms 5s102ms 4s180ms 1m16s 1m20s 1m35s 16 1,042 623ms 4s549ms 3s730ms 1m17s 1m17s 1m21s 17 1,047 547ms 5s29ms 3s792ms 1m17s 1m25s 1m26s 18 1,031 3s942ms 4s219ms 4s41ms 1m12s 1m13s 1m15s 19 1,012 0ms 6s622ms 3s760ms 1m21s 1m23s 2m2s 20 1,032 3s541ms 3s835ms 3s609ms 1m5s 1m5s 1m6s 21 1,104 0ms 6s784ms 3s212ms 1m8s 1m10s 2m32s 22 1,055 755ms 31s510ms 14s949ms 8m45s 8m53s 9m25s 23 1,070 525ms 50s626ms 15s745ms 9m49s 10m16s 10m37s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 25 00 2 0 766ms 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 2 0 767ms 0ms 0ms 0ms 13 2 0 773ms 0ms 0ms 764ms 14 0 8 2s817ms 0ms 0ms 0ms 15 0 0 0ms 0ms 0ms 0ms 16 2 0 791ms 0ms 0ms 0ms 17 6 0 758ms 0ms 0ms 1s534ms 18 0 0 0ms 0ms 0ms 0ms 19 3 7 2s436ms 0ms 0ms 9s102ms 20 0 0 0ms 0ms 0ms 0ms 21 4 14 2s602ms 0ms 0ms 18s445ms 22 2 7 2s613ms 0ms 0ms 3s97ms 23 9 7 1s184ms 0ms 525ms 1s546ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 25 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 1s54ms 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 8 2s343ms 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 Apr 25 00 0 11 11.00 0.00% 01 0 11 11.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 14 14.00 0.00% 11 0 12 12.00 0.00% 12 0 12 12.00 0.00% 13 0 12 12.00 0.00% 14 0 12 12.00 0.00% 15 0 17 17.00 0.00% 16 0 12 12.00 0.00% 17 0 12 12.00 0.00% 18 0 11 11.00 0.00% 19 0 14 14.00 0.00% 20 0 12 12.00 0.00% 21 0 12 12.00 0.00% 22 0 19 19.00 0.00% 23 0 30 30.00 0.00% Day Hour Count Average / Second Apr 25 00 1,044 0.29/s 01 872 0.24/s 02 544 0.15/s 03 544 0.15/s 04 550 0.15/s 05 547 0.15/s 06 544 0.15/s 07 590 0.16/s 08 652 0.18/s 09 549 0.15/s 10 971 0.27/s 11 964 0.27/s 12 1,061 0.29/s 13 1,055 0.29/s 14 1,074 0.30/s 15 1,125 0.31/s 16 1,366 0.38/s 17 1,512 0.42/s 18 895 0.25/s 19 1,078 0.30/s 20 898 0.25/s 21 1,386 0.39/s 22 1,424 0.40/s 23 2,361 0.66/s Day Hour Count Average Duration Average idle time Apr 25 00 1,044 224ms 0ms 01 872 235ms 0ms 02 544 228ms 0ms 03 544 228ms 0ms 04 550 225ms 0ms 05 547 226ms 0ms 06 544 227ms 0ms 07 590 213ms 0ms 08 652 204ms 0ms 09 549 224ms 0ms 10 971 222ms 0ms 11 964 217ms 0ms 12 1,061 225ms 0ms 13 1,055 225ms 0ms 14 1,071 276ms 0ms 15 1,125 224ms 0ms 16 1,366 228ms 0ms 17 1,512 215ms 0ms 18 895 227ms 0ms 19 1,077 243ms 0ms 20 898 235ms 0ms 21 1,266 264ms 0ms 22 1,197 405ms 0ms 23 2,233 379ms 0ms -
Connections
Established Connections
Key values
- 41 connections Connection Peak
- 2026-04-25 23:21:15 Date
Connections per database
Key values
- zemm_monitoring Main Database
- 23,606 connections Total
Database User Count bucardo 4 bucardo 1 labanimal 3 fbi_ci_db 2 labanimal 2 fbi_unibi 2 labanimal 2 fbi_unire 2 labanimal 2 invdb 2 labanimal 2 labanimal 2 labanimal 2 postgres 49 deploy 2 labanimal 47 template1 22 postgres 22 zemm_cryo_validate_20260425002602 6 deploy 6 zemm_dev 514 labanimal 514 zemm_monitoring 14,902 labanimal 14,902 zemm_produktiv_7 3,961 labanimal 3,941 postgres 20 zemm_produktiv_8 3,881 labanimal 3,880 postgres 1 zemm_test 251 labanimal 251 zemm_test_2 3 labanimal 3 zemm_test_3 3 labanimal 3 Connections per user
Key values
- labanimal Main User
- 23,606 connections Total
-
Sessions
Simultaneous sessions
Key values
- 8 sessions Session Peak
- 2026-04-25 21:13:20 Date
Histogram of session times
Key values
- 20,855 0-500ms duration
Sessions per database
Key values
- zemm_monitoring Main Database
- 23,127 sessions Total
Database Count Total Duration Average Duration bucardo 3 150ms 50ms fbi_ci_db 2 81ms 40ms fbi_unibi 2 78ms 39ms fbi_unire 2 73ms 36ms invdb 2 81ms 40ms labanimal 2 69ms 34ms postgres 49 1s279ms 26ms template1 22 125ms 5ms zemm_cryo_validate_20260425002602 6 168ms 28ms zemm_dev 514 2m13s 259ms zemm_monitoring 14,902 1h26m53s 349ms zemm_produktiv_7 3,485 5m10s 89ms zemm_produktiv_8 3,881 2m34s 39ms zemm_test 249 1m2s 249ms zemm_test_2 3 176ms 58ms zemm_test_3 3 163ms 54ms Sessions per user
Key values
- labanimal Main User
- 23,127 sessions Total
Sessions per host
Key values
- ::1 Main Host
- 23,127 sessions Total
Sessions per application
Key values
- Main Application
- 23,127 sessions Total
Application Count Total Duration Average Duration 20,162 1h30m18s 268ms _backend_cage_autocomplete_api.php_q_17-_limit_12_zemm_produkti 4 102ms 25ms _backend_cage_autocomplete_api.php_q_2025_limit_12_zemm_dev_loc 7 183ms 26ms _backend_cage_autocomplete_api.php_q_2025_limit_12_zemm_produkt 6 157ms 26ms _backend_cage_autocomplete_api.php_q_33_limit_12_zemm_produktiv 1 36ms 36ms _backend_cage_autocomplete_api.php_q_48-007_limit_12_zemm_produ 6 190ms 31ms _backend_cage_autocomplete_api.php_q_48-007_limit_12_zemm_test_ 2 58ms 29ms _backend_cage_autocomplete_api.php_q_48-008_limit_12_zemm_produ 1 29ms 29ms _backend_cage_autocomplete_api.php_q_48-008_limit_12_zemm_test_ 1 30ms 30ms _backend_cage_autocomplete_api.php_q_48-009_limit_12_zemm_produ 1 30ms 30ms _backend_cage_autocomplete_api.php_q_48-009_limit_12_zemm_test_ 1 24ms 24ms _backend_cage_autocomplete_api.php_q_48-00_limit_12_zemm_produk 1 34ms 34ms _backend_cage_autocomplete_api.php_q_48-00_limit_12_zemm_test_l 1 30ms 30ms _backend_cage_autocomplete_api.php_q_48-011_limit_12_zemm_produ 1 22ms 22ms _backend_cage_autocomplete_api.php_q_48-01_limit_12_zemm_produk 1 26ms 26ms _backend_cage_autocomplete_api.php_q_48-031_limit_12_zemm_test_ 3 82ms 27ms _backend_cage_autocomplete_api.php_q_48-032_limit_12_zemm_test_ 2 56ms 28ms _backend_cage_autocomplete_api.php_q_48-044_limit_12_zemm_test_ 1 30ms 30ms _backend_cage_autocomplete_api.php_q_48-045_limit_12_zemm_test_ 1 29ms 29ms _backend_cage_autocomplete_api.php_q_48-048_limit_12_zemm_produ 2 65ms 32ms _backend_cage_autocomplete_api.php_q_48-077_limit_12_zemm_produ 5 143ms 28ms _backend_cage_autocomplete_api.php_q_48-088_limit_12_zemm_produ 1 34ms 34ms _backend_cage_autocomplete_api.php_q_48-099_limit_12_zemm_produ 1 30ms 30ms _backend_cage_autocomplete_api.php_q_48-0_limit_12_zemm_produkt 4 119ms 29ms _backend_cage_autocomplete_api.php_q_48-0_limit_12_zemm_test_lo 2 59ms 29ms _backend_cage_autocomplete_api.php_q_48-1111_limit_12_zemm_prod 1 31ms 31ms _backend_cage_autocomplete_api.php_q_48-111_limit_12_zemm_produ 1 24ms 24ms _backend_cage_autocomplete_api.php_q_48-_5E11_limit_12_zemm_pro 1 28ms 28ms _backend_cage_autocomplete_api.php_q_48-_limit_12_zemm_produkti 2 73ms 36ms _backend_cage_autocomplete_api.php_q_Kadavertruhe_limit_12_zemm 17 708ms 41ms _backend_readyz.php_zemm_dev_localhost_5432 6 161ms 26ms _backend_readyz.php_zemm_produktiv_7_localhost_5432 11 299ms 27ms _backend_readyz.php_zemm_produktiv_8_localhost_5432 4 106ms 26ms _backend_readyz.php_zemm_test_localhost_5432 6 180ms 30ms _backend_wean_api.php_litter_id_10130227_zemm_dev_localhost_543 35 5s134ms 146ms _backend_wean_api.php_litter_id_10130227_zemm_produktiv_7_local 34 4s946ms 145ms _backend_wean_api.php_litter_id_10130236_zemm_dev_localhost_543 35 5s385ms 153ms _backend_wean_api.php_litter_id_10130236_zemm_produktiv_7_local 34 5s263ms 154ms _backend_wean_api.php_litter_id_10130257_zemm_dev_localhost_543 42 6s243ms 148ms _backend_wean_api.php_litter_id_10130257_zemm_produktiv_7_local 52 7s745ms 148ms _backend_wean_api.php_litter_id_10132216_zemm_test_localhost_54 2 297ms 148ms _backend_wean_api.php_litter_id_10132285_zemm_test_localhost_54 2 299ms 149ms _backend_wean_api.php_litter_id_10132299_zemm_produktiv_7_local 7 997ms 142ms _backend_wean_api.php_litter_id_10132299_zemm_test_localhost_54 4 568ms 142ms _backend_wean_api.php_litter_id_10132306_zemm_produktiv_7_local 7 996ms 142ms _backend_wean_api.php_litter_id_10132317_zemm_produktiv_7_local 11 1s554ms 141ms _backend_wean_api.php_litter_id_10132317_zemm_test_localhost_54 4 574ms 143ms _backend_wean_api.php_litter_id_10132319_zemm_produktiv_7_local 11 1s597ms 145ms _backend_wean_api.php_litter_id_10132319_zemm_test_localhost_54 5 724ms 144ms _backend_wean_api.php_zemm_produktiv_7_localhost_5432 5 4s597ms 919ms _backend_wean_api.php_zemm_test_localhost_5432 3 4s143ms 1s381ms _desktop__zemm_dev_localhost_5432 7 476ms 68ms _desktop__zemm_produktiv_7_localhost_5432 7 462ms 66ms _desktop__zemm_test_localhost_5432 1 63ms 63ms _desktop_index.php_command_animals_breedings_subcommand_select_ 13 751ms 57ms _desktop_index.php_command_animals_create_subcommand_init_zemm_ 13 819ms 63ms _desktop_index.php_command_animals_edit_subcommand_link_init_va 13 1s651ms 127ms _desktop_index.php_command_animals_edit_subcommand_m_init_scree 13 1s763ms 135ms _desktop_index.php_command_animals_litters_edit_subcommand_init 30 3s448ms 114ms _desktop_index.php_command_animals_litters_edit_subcommand_m_in 18 5s961ms 331ms _desktop_index.php_command_animals_litters_subcommand_select_ze 13 738ms 56ms _desktop_index.php_command_animals_subcommand_init_zemm_produkt 1 56ms 56ms _desktop_index.php_command_animals_subcommand_select_zemm_dev_l 7 519ms 74ms _desktop_index.php_command_animals_subcommand_select_zemm_produ 6 465ms 77ms _desktop_index.php_command_cryo_screen_ScreenCryo_subcommand_in 1 102ms 102ms _desktop_index.php_command_cryo_sub_command_init_zemm_produktiv 1 98ms 98ms _desktop_index.php_command_cryo_subcommand_init_zemm_dev_localh 5 574ms 114ms _desktop_index.php_command_cryo_subcommand_init_zemm_produktiv_ 4 439ms 109ms _desktop_index.php_command_cryo_subcommand_search_zemm_dev_loca 1 106ms 106ms _desktop_index.php_command_cryo_subcommand_select_zemm_dev_loca 1 106ms 106ms _desktop_index.php_command_cryo_zemm_produktiv_7_localhost_5432 1 112ms 112ms _desktop_index.php_command_login_subcommand_init_zemm_dev_local 29 823ms 28ms _desktop_index.php_command_login_subcommand_init_zemm_produktiv 1,503 46s66ms 30ms _desktop_index.php_command_login_subcommand_init_zemm_test_loca 12 386ms 32ms _desktop_index.php_command_login_zemm_dev_localhost_5432 1 35ms 35ms _desktop_index.php_command_pharmacy_subcommand_init_zemm_dev_lo 11 735ms 66ms _desktop_index.php_command_reports_subcommand_annual_reports_ze 1 68ms 68ms _desktop_index.php_command_reports_subcommand_annual_user_2024_ 1 199ms 199ms _desktop_index.php_command_reports_subcommand_annual_year_2024_ 1 71ms 71ms _desktop_index.php_command_reports_subcommand_fates_zemm_dev_lo 7 868ms 124ms _desktop_index.php_command_reports_subcommand_fates_zemm_produk 6 768ms 128ms _desktop_index.php_command_reports_subcommand_init_zemm_dev_loc 14 11s745ms 838ms _desktop_index.php_command_reports_subcommand_init_zemm_produkt 13 10s487ms 806ms _desktop_index.php_command_tasks_subcommand_edit_id_10134267_ze 13 1s185ms 91ms _desktop_index.php_command_tasks_subcommand_init_search_zemm_de 7 351ms 50ms _desktop_index.php_command_tasks_subcommand_init_search_zemm_pr 6 293ms 48ms _desktop_index.php_command_tasks_subcommand_open_legacy_1_zemm_ 1 62ms 62ms _desktop_index.php_command_tasks_subcommand_overview_zemm_produ 1 1s169ms 1s169ms _desktop_index.php_ui_menu_labels_1_zemm_dev_localhost_5432 1 84ms 84ms _desktop_index.php_zemm_dev_localhost_5432 134 35s575ms 265ms _desktop_index.php_zemm_produktiv_7_localhost_5432 183 57s979ms 316ms _desktop_index.php_zemm_produktiv_8_localhost_5432 2 226ms 113ms _desktop_index.php_zemm_test_localhost_5432 25 5s419ms 216ms _desktop_scoresheets.php_controller_scoresheets_status_deleted_ 1 56ms 56ms _desktop_scoresheets.php_zemm_produktiv_7_localhost_5432 1 57ms 57ms createdb 2 202ms 101ms dropdb 1 94ms 94ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s74ms 1s74ms fatescron:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s148ms 1s148ms pg_dump 9 2m33s 17s28ms pg_restore 1 44s232ms 44s232ms psql 376 7s169ms 19ms taskscron:zemm_produktiv_7@zemm.fbiscience.eu 22 595ms 27ms taskscron:zemm_produktiv_8@h2940066.stratoserver.net:5432 24 1s797ms 74ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 148,598 buffers Checkpoint Peak
- 2026-04-25 14:24:58 Date
- 269.801 seconds Highest write time
- 0.640 seconds Sync time
Checkpoints Wal files
Key values
- 84 files Wal files usage Peak
- 2026-04-25 14:24:58 Date
Checkpoints distance
Key values
- 2,664.77 Mo Distance Peak
- 2026-04-25 14:24:58 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Apr 25 00 6,220 606.487s 0.262s 606.821s 01 22,628 639.749s 0.089s 639.943s 02 2,754 276.207s 0.086s 276.357s 03 2,674 268.173s 0.083s 268.32s 04 2,997 300.544s 0.085s 300.69s 05 2,869 287.716s 0.085s 287.859s 06 2,850 285.801s 0.086s 285.945s 07 3,115 312.365s 0.122s 312.546s 08 2,832 284.022s 0.091s 284.169s 09 2,442 244.907s 0.076s 245.037s 10 13,612 638.039s 0.097s 638.209s 11 3,870 373.334s 0.104s 373.508s 12 3,645 365.743s 0.092s 365.894s 13 4,024 404.056s 0.101s 404.216s 14 152,013 611.518s 0.267s 611.913s 15 3,780 379.327s 0.114s 379.495s 16 4,543 454.839s 0.123s 455.023s 17 4,811 482.069s 0.148s 482.268s 18 3,225 323.484s 0.111s 323.647s 19 3,747 375.85s 0.129s 376.146s 20 4,367 437.495s 0.095s 437.644s 21 3,781 379.51s 0.158s 379.738s 22 2,764 277.495s 0.149s 277.699s 23 3,907 399.112s 0.761s 399.933s Day Hour Added Removed Recycled Synced files Longest sync Average sync Apr 25 00 0 1 0 864 0.003s 0.014s 01 0 8 0 469 0.001s 0.012s 02 0 0 0 437 0.001s 0.012s 03 0 1 0 422 0.001s 0.012s 04 0 1 0 431 0.002s 0.012s 05 0 1 0 432 0.001s 0.012s 06 0 1 0 436 0.002s 0.012s 07 0 1 0 660 0.002s 0.012s 08 0 1 0 468 0.002s 0.012s 09 0 1 0 390 0.001s 0.011s 10 0 3 0 493 0.002s 0.013s 11 0 1 0 524 0.002s 0.014s 12 0 1 0 468 0.001s 0.012s 13 0 1 0 496 0.003s 0.012s 14 0 0 92 1,542 0.002s 0.012s 15 0 1 0 481 0.002s 0.012s 16 0 2 0 557 0.002s 0.012s 17 0 1 0 662 0.003s 0.012s 18 0 1 0 427 0.003s 0.012s 19 0 1 0 578 0.003s 0.012s 20 0 1 0 435 0.002s 0.012s 21 0 1 0 729 0.003s 0.012s 22 0 1 0 679 0.003s 0.012s 23 0 1 0 605 0.088s 0.031s Day Hour Count Avg time (sec) Apr 25 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 Apr 25 00 2,080.43 kB 3,402.07 kB 01 9,679.75 kB 40,446.67 kB 02 1,172.92 kB 32,464.83 kB 03 1,130.67 kB 9,988.58 kB 04 1,220.75 kB 3,665.42 kB 05 1,218.50 kB 1,903.42 kB 06 1,225.08 kB 1,429.83 kB 07 1,301.33 kB 1,510.08 kB 08 1,179.17 kB 1,719.58 kB 09 1,170.27 kB 1,326.09 kB 10 4,092.54 kB 15,591.38 kB 11 1,205.57 kB 10,509.07 kB 12 1,519.92 kB 3,689.92 kB 13 1,553.00 kB 2,510.67 kB 14 125,861.08 kB 654,313.83 kB 15 1,468.33 kB 355,996.50 kB 16 1,689.92 kB 101,723.08 kB 17 1,857.50 kB 30,068.50 kB 18 1,282.08 kB 9,515.33 kB 19 1,425.00 kB 3,659.42 kB 20 1,570.08 kB 2,177.58 kB 21 1,439.00 kB 2,188.42 kB 22 906.08 kB 2,156.25 kB 23 1,607.17 kB 2,938.33 kB -
Temporary Files
Size of temporary files
Key values
- 860.05 MiB Temp Files size Peak
- 2026-04-25 23:01:09 Date
Number of temporary files
Key values
- 34 per second Temp Files Peak
- 2026-04-25 14:19:48 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Apr 25 00 55 3.23 GiB 60.06 MiB 01 55 3.23 GiB 60.10 MiB 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 70 4.04 GiB 59.16 MiB 11 60 3.56 GiB 60.77 MiB 12 60 3.56 GiB 60.81 MiB 13 60 3.57 GiB 60.86 MiB 14 221 4.44 GiB 20.56 MiB 15 85 4.88 GiB 58.81 MiB 16 60 3.57 GiB 60.98 MiB 17 60 3.58 GiB 61.02 MiB 18 55 3.28 GiB 61.06 MiB 19 70 3.85 GiB 56.30 MiB 20 60 2.76 GiB 47.07 MiB 21 60 2.76 GiB 47.11 MiB 22 95 8.16 GiB 87.95 MiB 23 135 13.28 GiB 100.72 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 878 54.28 GiB 44.83 MiB 220.23 MiB 63.31 MiB with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) 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 start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:06:05 Duration: 50s626ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:21:49 Duration: 34s679ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:26:50 Duration: 34s362ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
2 10 127.11 MiB 8.00 KiB 26.60 MiB 12.71 MiB alter table only public."targetgroupMembers" add constraint "targetgroupMembers_pkey" primary key (id);-
ALTER TABLE ONLY public."targetgroupMembers" ADD CONSTRAINT "targetgroupMembers_pkey" PRIMARY KEY (id);
Date: 2026-04-25 14:19:48 Duration: 534ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
3 10 42.70 MiB 8.00 KiB 9.32 MiB 4.27 MiB alter table only public.diary add constraint diary_pkey primary key (id);-
ALTER TABLE ONLY public.diary ADD CONSTRAINT diary_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:47 Duration: 731ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
4 8 11.69 MiB 8.00 KiB 3.41 MiB 1.46 MiB alter table only public.animals_search_mview add constraint animals_search_mview_pkey primary key (id);-
ALTER TABLE ONLY public.animals_search_mview ADD CONSTRAINT animals_search_mview_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:47 Duration: 731ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
5 8 13.98 MiB 8.00 KiB 5.65 MiB 1.75 MiB alter table only public.cost_history add constraint cost_history_pkey primary key (id);-
ALTER TABLE ONLY public.cost_history ADD CONSTRAINT cost_history_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:47 Duration: 731ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
6 8 11.69 MiB 8.00 KiB 3.61 MiB 1.46 MiB alter table only public.animals add constraint animals_pkey primary key (id);-
ALTER TABLE ONLY public.animals ADD CONSTRAINT animals_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:47 Duration: 731ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
7 8 44.14 MiB 8.00 KiB 12.65 MiB 5.52 MiB alter table only public.targetgroups add constraint targetgroups_pkey primary key (id);-
ALTER TABLE ONLY public.targetgroups ADD CONSTRAINT targetgroups_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:49 Duration: 1s212ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
8 6 9.45 MiB 8.00 KiB 9.11 MiB 1.57 MiB alter table only public.tasks_changes add constraint tasks_changes_index01 primary key (id, task);-
ALTER TABLE ONLY public.tasks_changes ADD CONSTRAINT tasks_changes_index01 PRIMARY KEY (id, task);
Date: 2026-04-25 14:19:50 Duration: 673ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
9 6 1.12 MiB 8.00 KiB 760.00 KiB 192.00 KiB alter table only public.tasks add constraint tasks_pkey primary key (id);-
ALTER TABLE ONLY public.tasks ADD CONSTRAINT tasks_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:50 Duration: 673ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
10 5 127.07 MiB 25.11 MiB 26.48 MiB 25.41 MiB create index "targetgroupMembers_FKIndex1" on public."targetgroupMembers" using btree (targetgroup);-
CREATE INDEX "targetgroupMembers_FKIndex1" ON public."targetgroupMembers" USING btree (targetgroup);
Date: 2026-04-25 14:19:55 Duration: 626ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
11 5 127.07 MiB 22.44 MiB 26.28 MiB 25.41 MiB create index "targetgroupMembers_FKIndex2" on public."targetgroupMembers" using btree ("group");-
CREATE INDEX "targetgroupMembers_FKIndex2" ON public."targetgroupMembers" USING btree ("group");
Date: 2026-04-25 14:19:56 Duration: 1s602ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
12 5 127.08 MiB 25.31 MiB 25.53 MiB 25.42 MiB create index "targetgroupMembers_user_idx" on public."targetgroupMembers" using btree ("user");-
CREATE INDEX "targetgroupMembers_user_idx" ON public."targetgroupMembers" USING btree ("user");
Date: 2026-04-25 14:19:58 Duration: 1s470ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
13 5 42.66 MiB 6.95 MiB 9.73 MiB 8.53 MiB create index diary_animalid_idx on public.diary using btree ("animalID");-
CREATE INDEX diary_animalid_idx ON public.diary USING btree ("animalID");
Date: 2026-04-25 14:19:54 Duration: 948ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
14 4 3.85 MiB 8.00 KiB 3.34 MiB 986.00 KiB alter table only public.monitoring_session_activity add constraint monitoring_session_activity_pkey primary key (session_id);-
ALTER TABLE ONLY public.monitoring_session_activity ADD CONSTRAINT monitoring_session_activity_pkey PRIMARY KEY (session_id);
Date: 2026-04-25 14:19:48 Duration: 534ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
15 4 3.51 MiB 8.00 KiB 2.46 MiB 898.00 KiB alter table only public.litter_history add constraint litter_history_pkey primary key (id);-
ALTER TABLE ONLY public.litter_history ADD CONSTRAINT litter_history_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:48 Duration: 534ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
16 4 78.98 MiB 19.25 MiB 20.98 MiB 19.74 MiB create index titleindex on public.targetgroups using btree (title);-
CREATE INDEX titleindex ON public.targetgroups USING btree (title);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
17 4 1.83 MiB 8.00 KiB 1.80 MiB 468.00 KiB alter table only public.litters_search_mview add constraint litters_search_mview_pkey primary key (id);-
ALTER TABLE ONLY public.litters_search_mview ADD CONSTRAINT litters_search_mview_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:48 Duration: 534ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
18 4 3.33 MiB 8.00 KiB 2.41 MiB 852.00 KiB alter table only public.fem_numbers add constraint main_ukey unique (year, th, num);-
ALTER TABLE ONLY public.fem_numbers ADD CONSTRAINT main_ukey UNIQUE (year, th, num);
Date: 2026-04-25 14:19:48 Duration: 534ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
19 4 11.66 MiB 2.38 MiB 3.73 MiB 2.91 MiB create index "animals_FKIndex11" on public.animals using btree (species);-
CREATE INDEX "animals_FKIndex11" ON public.animals USING btree (species);
Date: 2026-04-25 14:19:50 Duration: 673ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
20 4 11.66 MiB 2.52 MiB 3.96 MiB 2.91 MiB create index "animals_FKIndex2" on public.animals using btree ("homeCage");-
CREATE INDEX "animals_FKIndex2" ON public.animals USING btree ("homeCage");
Date: 2026-04-25 14:19:51 Duration: 673ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
21 4 1.83 MiB 8.00 KiB 1.56 MiB 468.00 KiB alter table only public.litters add constraint litters_pkey primary key (id);-
ALTER TABLE ONLY public.litters ADD CONSTRAINT litters_pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:48 Duration: 534ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
22 4 11.64 MiB 2.57 MiB 3.68 MiB 2.91 MiB create index animals_curcage_active_idx on public.animals using btree ("curCage") where (not deleted);-
CREATE INDEX animals_curcage_active_idx ON public.animals USING btree ("curCage") WHERE (NOT deleted);
Date: 2026-04-25 14:19:52 Duration: 1s407ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
23 4 25.62 MiB 5.96 MiB 7.65 MiB 6.40 MiB create index animals_mview_idx on public.animals_search_mview using btree (id nulls first, owner nulls first, editor nulls first, tourist nulls first);-
CREATE INDEX animals_mview_idx ON public.animals_search_mview USING btree (id NULLS FIRST, owner NULLS FIRST, editor NULLS FIRST, tourist NULLS FIRST);
Date: 2026-04-25 14:19:52 Duration: 1s407ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
24 4 13.95 MiB 2.26 MiB 5.44 MiB 3.49 MiB create index cost_history_animal_idx on public.cost_history using btree (animal);-
CREATE INDEX cost_history_animal_idx ON public.cost_history USING btree (animal);
Date: 2026-04-25 14:19:54 Duration: 948ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
25 4 16.30 MiB 3.70 MiB 5.05 MiB 4.07 MiB create index animals_animalid_idx on public.animals using btree ("animalID");-
CREATE INDEX animals_animalid_idx ON public.animals USING btree ("animalID");
Date: 2026-04-25 14:19:51 Duration: 673ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
26 4 2.39 MiB 8.00 KiB 1.92 MiB 612.00 KiB alter table only public.fem_numbers add constraint pkey primary key (id);-
ALTER TABLE ONLY public.fem_numbers ADD CONSTRAINT pkey PRIMARY KEY (id);
Date: 2026-04-25 14:19:48 Duration: 534ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
27 3 6.73 MiB 2.21 MiB 2.26 MiB 2.24 MiB create index tasks_changes_deleted_idx on public.tasks_changes using btree (deleted);-
CREATE INDEX tasks_changes_deleted_idx ON public.tasks_changes USING btree (deleted);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
28 3 1.11 MiB 264.00 KiB 600.00 KiB 378.67 KiB create index tasks_active_index on public.tasks using btree (active);-
CREATE INDEX tasks_active_index ON public.tasks USING btree (active);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
29 3 1.11 MiB 72.00 KiB 984.00 KiB 378.67 KiB create index tasks_done_idx on public.tasks using btree (done);-
CREATE INDEX tasks_done_idx ON public.tasks USING btree (done);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
30 3 1.11 MiB 136.00 KiB 816.00 KiB 378.67 KiB create index tasks_task_status_idx on public.tasks using btree (task_status);-
CREATE INDEX tasks_task_status_idx ON public.tasks USING btree (task_status);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
31 3 1.10 MiB 120.00 KiB 856.00 KiB 376.00 KiB create index tasks_owner_index on public.tasks using btree (owner);-
CREATE INDEX tasks_owner_index ON public.tasks USING btree (owner);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
32 3 1.11 MiB 128.00 KiB 848.00 KiB 378.67 KiB create index tasks_editor_idx on public.tasks using btree (editor);-
CREATE INDEX tasks_editor_idx ON public.tasks USING btree (editor);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
33 3 1.54 MiB 80.00 KiB 1.34 MiB 525.33 KiB create index tasks_id_parent_idx on public.tasks using btree (id, parent);-
CREATE INDEX tasks_id_parent_idx ON public.tasks USING btree (id, parent);
Date: 2026-04-25 14:20:00 Duration: 2s325ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
34 2 1.74 MiB 176.00 KiB 1.57 MiB 892.00 KiB create index monitoring_session_activity_user_idx on public.monitoring_session_activity using btree (user_id);-
CREATE INDEX monitoring_session_activity_user_idx ON public.monitoring_session_activity USING btree (user_id);
Date: 2026-04-25 14:19:55 Duration: 626ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
35 2 1.80 MiB 216.00 KiB 1.59 MiB 924.00 KiB create index litters_dam_index on public.litters using btree (dam);-
CREATE INDEX litters_dam_index ON public.litters USING btree (dam);
Date: 2026-04-25 14:19:55 Duration: 626ms Database: zemm_test User: labanimal Application: pg_restore Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Queries generating the largest temporary files
Rank Size Query 1 220.23 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:01:25 - Queryid: 2385676 ]
2 190.09 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:01:25 - Queryid: 2385676 ]
3 183.84 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:01:25 - Queryid: 2385676 ]
4 178.23 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:32:46 - Queryid: 2367421 ]
5 176.64 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:21:49 - Queryid: 2411464 ]
6 176.27 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:16:34 - Queryid: 2398204 ]
7 176.24 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:21:49 - Queryid: 2411464 ]
8 176.05 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:32:46 - Queryid: 2367421 ]
9 171.70 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:16:34 - Queryid: 2398204 ]
10 171.66 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:31:59 - Queryid: 2423006 ]
11 171.54 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:11:25 - Queryid: 2392862 ]
12 170.74 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:34:57 - Queryid: 2371466 ]
13 167.71 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:06:16 - Queryid: 2387667 ]
14 166.72 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:50:25 - Queryid: 2378744 ]
15 166.72 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:40:07 - Queryid: 2373041 ]
16 166.25 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:37:08 - Queryid: 2424786 ]
17 165.65 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:50:25 - Queryid: 2378744 ]
18 163.62 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 23:31:59 - Queryid: 2423006 ]
19 163.38 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:55:34 - Queryid: 2380688 ]
20 162.97 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1, $2, $3) AND collected_at <= $4 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($5, $6, $7) AND collected_at BETWEEN $8 AND $9 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($10, $11, $12) AND collected_at BETWEEN $13 AND $14 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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 $15 OFFSET $16;[ Date: 2026-04-25 22:45:16 - Queryid: 2375395 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 4.36 sec Highest CPU-cost vacuum
Table public.animals
Database zemm_test - 2026-04-25 14:19:35 Date
- 0 sec Highest CPU-cost analyze
Table
Database zemm_test - Date
Average Autovacuum Duration
Key values
- 4.36 sec Highest CPU-cost vacuum
Table public.animals
Database zemm_test - 2026-04-25 14:19:35 Date
Analyzes per table
Key values
- public.login_tracker (4) Main table analyzed (database zemm_dev)
- 95 analyzes Total
Table Number of analyzes zemm_dev.public.login_tracker 4 zemm_test.pg_catalog.pg_class 4 zemm_produktiv_7.public.login_tracker 4 zemm_test.pg_catalog.pg_type 3 zemm_test.pg_catalog.pg_constraint 3 zemm_test.pg_catalog.pg_depend 2 zemm_cryo_validate_20260425002602.pg_catalog.pg_attribute 2 zemm_test.pg_catalog.pg_attribute 2 zemm_test.pg_catalog.pg_index 2 zemm_cryo_validate_20260425002602.pg_catalog.pg_constraint 1 zemm_test.public.scoresheet_response 1 zemm_test.public.license_history 1 zemm_test.public.breedings 1 zemm_dev.pg_catalog.pg_attribute 1 zemm_test.public.targetgroupMembers 1 zemm_test.public.taskattachment 1 zemm_produktiv_7.pg_catalog.pg_sequence 1 zemm_produktiv_7.pg_catalog.pg_attribute 1 zemm_cryo_validate_20260425002602.pg_catalog.pg_trigger 1 zemm_test.public.sys_actions 1 zemm_test.public.tasks_changes 1 zemm_test.public.cages_search_mview 1 zemm_cryo_validate_20260425002602.pg_catalog.pg_class 1 zemm_test.public.licenses 1 zemm_test.public.tmptasks 1 zemm_produktiv_7.pg_catalog.pg_attrdef 1 zemm_test.public.locations 1 zemm_test.public.diary 1 zemm_produktiv_7.pg_catalog.pg_index 1 zemm_cryo_validate_20260425002602.pg_catalog.pg_depend 1 zemm_test.public.cages 1 zemm_monitoring.observability.metrics_timeseries 1 zemm_produktiv_7.pg_catalog.pg_depend 1 zemm_produktiv_7.public.user_ui_prefs 1 zemm_test.public.scoresheet_answer 1 zemm_test.pg_catalog.pg_attrdef 1 zemm_produktiv_7.pg_catalog.pg_trigger 1 zemm_dev.pg_catalog.pg_depend 1 zemm_test.public.targetgroups 1 zemm_dev.pg_catalog.pg_attrdef 1 zemm_produktiv_8.public.tasks 1 zemm_dev.pg_catalog.pg_shdepend 1 labanimal.pg_catalog.pg_shdepend 1 zemm_test.public.cost_history 1 zemm_test.public.choice 1 zemm_dev.pg_catalog.pg_trigger 1 zemm_produktiv_7.pg_catalog.pg_constraint 1 zemm_produktiv_7.pg_catalog.pg_type 1 zemm_test.public.roles_users 1 zemm_test.public.login_tracker 1 zemm_test.public.tasks 1 zemm_test.public.groupMembers 1 zemm_test.public.litters_search_mview 1 zemm_cryo_validate_20260425002602.pg_catalog.pg_index 1 zemm_test.public.monitoring_session_activity 1 postgres.pg_catalog.pg_shdepend 1 zemm_test.public.animals 1 zemm_test.public.breedingsdams 1 zemm_test.public.litter_history 1 zemm_test.public.litters 1 zemm_test.public.stresslevel_response 1 zemm_test.public.documents 1 zemm_test.pg_catalog.pg_sequence 1 zemm_test.public.animals_search_mview 1 zemm_test.public.sys_screens 1 zemm_cryo_validate_20260425002602.pg_catalog.pg_attrdef 1 zemm_test.public.groups 1 zemm_test.public.strains 1 zemm_test.public.breedingssires 1 zemm_dev.pg_catalog.pg_constraint 1 zemm_test.public.users 1 zemm_dev.public.user_ui_prefs 1 zemm_test.public.question 1 zemm_test.public.fem_numbers 1 zemm_test.public.scoresheet_diary 1 zemm_test.pg_catalog.pg_trigger 1 zemm_produktiv_7.pg_catalog.pg_class 1 zemm_dev.pg_catalog.pg_class 1 Total 95 Vacuums per table
Key values
- pg_toast.pg_toast_67431 (4) Main table vacuumed on database zemm_monitoring
- 54 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 4 0 0 0 0 0 0 3,811 1,282 2,914,367 1,260 7,560 zemm_produktiv_7.public.user_ui_prefs 2 2 0 0 0 0 0 113 19 28,740 0 0 zemm_test.pg_catalog.pg_statistic 2 2 0 0 0 0 0 255 54 247,523 36 365 zemm_test.pg_catalog.pg_depend 2 1 0 0 0 0 0 90 20 55,684 16 1,818 zemm_produktiv_7.pg_catalog.pg_depend 1 1 0 0 0 0 0 102 47 88,162 5 245 zemm_cryo_validate_20260425002602.pg_catalog.pg_depend 1 1 0 0 0 0 0 55 0 9,123 0 0 zemm_test.public.diary 1 0 0 0 0 0 0 31,857 1 1,879,830 0 0 zemm_test.public.cages 1 0 0 0 0 0 0 185 3 11,592 0 0 zemm_test.pg_catalog.pg_class 1 1 0 0 0 0 0 46 0 3,538 0 0 zemm_test.public.targetgroups 1 0 0 0 0 0 0 16,199 1 956,005 0 0 zemm_produktiv_7.pg_catalog.pg_shdepend 1 1 0 0 0 0 0 79 11 24,725 0 0 zemm_dev.pg_catalog.pg_depend 1 1 0 0 0 0 0 45 15 36,114 0 0 zemm_test.public.scoresheet_answer 1 0 0 0 0 0 0 33 3 2,399 0 0 zemm_dev.pg_catalog.pg_attribute 1 1 0 0 0 0 0 137 16 30,391 0 0 zemm_test.public.targetgroupMembers 1 0 0 0 0 0 0 42,346 42,347 132,661,951 0 0 zemm_test.public.breedings 1 0 0 0 0 0 0 224 3 13,936 0 0 zemm_test.public.license_history 1 0 0 0 0 0 0 173 3 10,633 0 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_constraint 1 1 0 0 0 0 0 54 0 6,608 0 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_class 1 1 0 0 0 0 0 38 0 3,677 0 0 zemm_test.public.tmptasks 1 0 0 0 0 0 0 104 3 6,756 0 0 zemm_test.public.licenses 1 0 0 0 0 0 0 22 3 1,749 0 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_trigger 1 1 0 0 0 0 0 33 3 4,784 0 0 zemm_produktiv_7.pg_catalog.pg_attribute 1 1 0 0 0 0 0 183 78 133,572 13 635 zemm_test.public.cages_search_mview 1 0 0 0 0 0 0 210 3 13,129 0 0 zemm_test.public.tasks_changes 1 0 0 0 0 0 0 3,815 1 225,349 0 0 zemm_test.public.taskattachment 1 0 0 0 0 0 0 296 3 18,310 0 0 zemm_test.public.breedingssires 1 0 0 0 0 0 0 149 3 9,217 0 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_attribute 1 1 0 0 0 0 0 94 0 10,818 0 0 zemm_test.public.animals_search_mview 1 0 0 0 0 0 0 23,055 1 1,360,509 0 0 zemm_test.public.strains 1 0 0 0 0 0 0 58 3 3,941 0 0 zemm_test.public.stresslevel_response 1 0 0 0 0 0 0 13 3 1,186 0 0 zemm_test.public.litters 1 0 0 0 0 0 0 1,085 1 64,279 0 0 zemm_test.public.scoresheet_diary 1 0 0 0 0 0 0 10 4 1,193 0 0 zemm_test.public.fem_numbers 1 0 0 0 0 0 0 1,032 1 61,152 0 0 zemm_test.pg_catalog.pg_trigger 1 0 0 0 0 0 0 46 18 28,061 14 674 zemm_test.pg_catalog.pg_attribute 1 1 0 0 0 0 0 159 0 11,014 0 0 zemm_test.public.users 1 0 0 0 0 0 0 63 61 199,813 0 0 zemm_test.public.cost_history 1 0 0 0 0 0 0 9,395 1 554,569 0 0 zemm_produktiv_8.public.tasks 1 1 0 0 0 0 0 47,510 31 3,484,478 2 4 zemm_test.pg_catalog.pg_constraint 1 0 0 0 0 0 0 40 29 50,269 6 174 zemm_test.public.litter_history 1 0 0 0 0 0 0 1,682 1 99,502 0 0 zemm_test.public.monitoring_session_activity 1 0 0 0 0 0 0 1,086 1 64,338 0 0 zemm_test.public.animals 1 0 0 0 0 0 0 16,007 1 944,677 0 0 zemm_test.public.breedingsdams 1 0 0 0 0 0 0 200 3 12,227 0 0 zemm_test.public.groupMembers 1 0 0 0 0 0 0 9 4 1,134 0 0 zemm_test.public.tasks 1 0 0 0 0 0 0 8,664 1 511,440 0 0 zemm_test.public.litters_search_mview 1 0 0 0 0 0 0 2,505 1 148,059 0 0 zemm_produktiv_7.pg_catalog.pg_type 1 1 0 0 0 0 0 28 11 17,428 0 0 Total 54 19 0 0 0 0 0 213,395 44,098 147,027,951 1,352 11,475 Vacuum throughput per table
Key values
- public.animals (4.36) Max CPU elapsed for vacuum on database zemm_test
- pg_toast.pg_toast_67431 (4.874 ms) Max I/O read time for vacuum on database zemm_test
- public.animals (47.895 ms) Max I/O write time for vacuum on database zemm_test
I/O timing (ms) CPU (s) Table read write elapsed zemm_monitoring.pg_toast.pg_toast_67431 4.874 0.022 0.32 zemm_produktiv_7.public.user_ui_prefs 0.711 0 0 zemm_test.pg_catalog.pg_statistic 0.23 0 0.01 zemm_test.pg_catalog.pg_depend 0 0 0 zemm_produktiv_7.pg_catalog.pg_depend 0.261 0.059 0.01 zemm_cryo_validate_20260425002602.pg_catalog.pg_depend 0 0 0 zemm_test.public.diary 0.081 0.015 0.82 zemm_test.public.cages 0.065 0.016 0 zemm_test.pg_catalog.pg_class 0 0 0 zemm_test.public.targetgroups 0 0.014 0.46 zemm_produktiv_7.pg_catalog.pg_shdepend 0.128 0 0 zemm_dev.pg_catalog.pg_depend 1.242 0 0 zemm_test.public.scoresheet_answer 0 0.015 0 zemm_dev.pg_catalog.pg_attribute 1.597 0 0.01 zemm_test.public.targetgroupMembers 0 0.081 1.83 zemm_test.public.breedings 0.064 0.022 0.01 zemm_test.public.license_history 0.047 0.012 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_constraint 0 0 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_class 0 0 0 zemm_test.public.tmptasks 0.012 0.015 0 zemm_test.public.licenses 0.012 0.017 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_trigger 0 0.037 0 zemm_produktiv_7.pg_catalog.pg_attribute 0.42 0 0.02 zemm_test.public.cages_search_mview 0.026 0.014 0 zemm_test.public.tasks_changes 0.057 0.014 0.09 zemm_test.public.taskattachment 0.029 0.032 0.01 zemm_test.public.breedingssires 0.027 0.017 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_attribute 0 0 0 zemm_test.public.animals_search_mview 0.082 0.014 0.56 zemm_test.public.strains 0 0.011 0 zemm_test.public.stresslevel_response 0 0.016 0 zemm_test.public.litters 0.058 0.025 0.03 zemm_test.public.scoresheet_diary 0 0.017 0 zemm_test.public.fem_numbers 0.033 0.02 0.02 zemm_test.pg_catalog.pg_trigger 0 0.012 0 zemm_test.pg_catalog.pg_attribute 0 0 0 zemm_test.public.users 0 0.017 0.01 zemm_test.public.cost_history 0.063 0.015 0.24 zemm_produktiv_8.public.tasks 0.229 0 0.63 zemm_test.pg_catalog.pg_constraint 0 0 0 zemm_test.public.litter_history 0.026 0.013 0.04 zemm_test.public.monitoring_session_activity 0.046 0.022 0.02 zemm_test.public.animals 4.434 47.895 4.36 zemm_test.public.breedingsdams 0.027 0.017 0 zemm_test.public.groupMembers 0.039 0.016 0 zemm_test.public.tasks 0.114 0.014 0.2 zemm_test.public.litters_search_mview 0.045 0.015 0.06 zemm_produktiv_7.pg_catalog.pg_type 0.627 0 0 Total 15.706 48.541 9.76 Tuples removed per table
Key values
- public.tasks (54053) Main table with removed tuples on database zemm_produktiv_8
- 57128 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain zemm_produktiv_8.public.tasks 1 1 54,053 57,138 0 0 16,830 zemm_cryo_validate_20260425002602.pg_catalog.pg_depend 1 1 822 2,887 0 0 28 zemm_cryo_validate_20260425002602.pg_catalog.pg_attribute 1 1 639 4,144 0 0 84 zemm_test.pg_catalog.pg_statistic 2 2 238 1,597 0 0 124 zemm_cryo_validate_20260425002602.pg_catalog.pg_trigger 1 1 227 227 0 0 10 zemm_produktiv_7.pg_catalog.pg_depend 1 1 196 5,720 0 0 51 zemm_cryo_validate_20260425002602.pg_catalog.pg_constraint 1 1 185 422 0 0 23 zemm_produktiv_7.pg_catalog.pg_shdepend 1 1 182 4,426 0 0 38 zemm_test.pg_catalog.pg_attribute 1 1 170 7,443 0 0 134 zemm_produktiv_7.pg_catalog.pg_attribute 1 1 156 7,955 0 0 190 zemm_dev.pg_catalog.pg_attribute 1 1 146 8,886 0 0 190 zemm_test.pg_catalog.pg_depend 2 1 54 9,799 0 0 74 zemm_produktiv_7.pg_catalog.pg_type 1 1 28 895 0 0 27 zemm_produktiv_7.public.user_ui_prefs 2 2 22 6 0 0 2 zemm_test.pg_catalog.pg_class 1 1 5 1,087 0 0 26 zemm_cryo_validate_20260425002602.pg_catalog.pg_class 1 1 5 574 0 0 19 zemm_test.public.diary 1 0 0 2,231,310 0 0 31,904 zemm_test.public.cages 1 0 0 13,882 0 36 180 zemm_test.public.targetgroups 1 0 0 2,307,263 0 0 16,256 zemm_dev.pg_catalog.pg_depend 1 1 0 6,727 0 0 51 zemm_test.public.scoresheet_answer 1 0 0 3,387 0 4 28 zemm_test.public.targetgroupMembers 1 0 0 6,648,165 0 0 42,352 zemm_test.public.breedings 1 0 0 22,570 0 53 219 zemm_test.public.license_history 1 0 0 22,793 0 24 168 zemm_test.public.tmptasks 1 0 0 1,007 0 45 99 zemm_test.public.licenses 1 0 0 638 0 15 17 zemm_test.public.cages_search_mview 1 0 0 13,885 0 43 205 zemm_test.public.tasks_changes 1 0 0 351,456 0 0 3,864 zemm_test.public.taskattachment 1 0 0 16,691 0 53 291 zemm_test.public.breedingssires 1 0 0 22,582 0 32 144 zemm_test.public.animals_search_mview 1 0 0 608,952 0 0 23,104 zemm_test.public.strains 1 0 0 2,269 0 11 53 zemm_test.public.stresslevel_response 1 0 0 1,663 0 2 8 zemm_test.public.litters 1 0 0 94,098 0 0 1,104 zemm_test.public.scoresheet_diary 1 0 0 1,057 0 0 6 zemm_test.public.fem_numbers 1 0 0 123,618 0 0 1,032 zemm_test.pg_catalog.pg_trigger 1 0 0 674 0 0 14 zemm_test.public.users 1 0 0 756 0 14 58 zemm_monitoring.pg_toast.pg_toast_67431 4 0 0 1,878,178 0 0 317,236 zemm_test.public.cost_history 1 0 0 729,413 0 0 9,456 zemm_test.pg_catalog.pg_constraint 1 0 0 937 0 0 28 zemm_test.public.litter_history 1 0 0 182,068 0 0 1,744 zemm_test.public.monitoring_session_activity 1 0 0 90,463 0 0 1,096 zemm_test.public.animals 1 0 0 608,952 0 0 16,032 zemm_test.public.breedingsdams 1 0 0 30,510 0 45 195 zemm_test.public.groupMembers 1 0 0 767 0 0 5 zemm_test.public.tasks 1 0 0 57,078 0 0 8,720 zemm_test.public.litters_search_mview 1 0 0 94,100 0 0 2,512 Total 54 19 57,128 16,281,115 0 377 496,031 Pages removed per table
Key values
- public.breedings (53) Main table with removed pages on database zemm_test
- 377 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed zemm_test.public.breedings 1 0 0 53 zemm_test.public.taskattachment 1 0 0 53 zemm_test.public.tmptasks 1 0 0 45 zemm_test.public.breedingsdams 1 0 0 45 zemm_test.public.cages_search_mview 1 0 0 43 zemm_test.public.cages 1 0 0 36 zemm_test.public.breedingssires 1 0 0 32 zemm_test.public.license_history 1 0 0 24 zemm_test.public.licenses 1 0 0 15 zemm_test.public.users 1 0 0 14 zemm_test.public.strains 1 0 0 11 zemm_test.public.scoresheet_answer 1 0 0 4 zemm_test.public.stresslevel_response 1 0 0 2 zemm_produktiv_7.public.user_ui_prefs 2 2 22 0 zemm_produktiv_7.pg_catalog.pg_depend 1 1 196 0 zemm_test.pg_catalog.pg_statistic 2 2 238 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_depend 1 1 822 0 zemm_test.public.diary 1 0 0 0 zemm_test.pg_catalog.pg_class 1 1 5 0 zemm_test.public.targetgroups 1 0 0 0 zemm_produktiv_7.pg_catalog.pg_shdepend 1 1 182 0 zemm_dev.pg_catalog.pg_depend 1 1 0 0 zemm_test.pg_catalog.pg_depend 2 1 54 0 zemm_dev.pg_catalog.pg_attribute 1 1 146 0 zemm_test.public.targetgroupMembers 1 0 0 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_constraint 1 1 185 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_class 1 1 5 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_trigger 1 1 227 0 zemm_produktiv_7.pg_catalog.pg_attribute 1 1 156 0 zemm_test.public.tasks_changes 1 0 0 0 zemm_cryo_validate_20260425002602.pg_catalog.pg_attribute 1 1 639 0 zemm_test.public.animals_search_mview 1 0 0 0 zemm_test.public.litters 1 0 0 0 zemm_test.public.scoresheet_diary 1 0 0 0 zemm_test.public.fem_numbers 1 0 0 0 zemm_test.pg_catalog.pg_trigger 1 0 0 0 zemm_test.pg_catalog.pg_attribute 1 1 170 0 zemm_monitoring.pg_toast.pg_toast_67431 4 0 0 0 zemm_test.public.cost_history 1 0 0 0 zemm_produktiv_8.public.tasks 1 1 54053 0 zemm_test.pg_catalog.pg_constraint 1 0 0 0 zemm_test.public.litter_history 1 0 0 0 zemm_test.public.monitoring_session_activity 1 0 0 0 zemm_test.public.animals 1 0 0 0 zemm_test.public.groupMembers 1 0 0 0 zemm_test.public.tasks 1 0 0 0 zemm_test.public.litters_search_mview 1 0 0 0 zemm_produktiv_7.pg_catalog.pg_type 1 1 28 0 Total 54 19 57,128 377 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Apr 25 00 5 9 01 1 1 02 0 0 03 0 0 04 1 0 05 0 0 06 0 0 07 2 8 08 1 1 09 1 0 10 0 0 11 0 0 12 0 0 13 0 2 14 36 54 15 1 0 16 1 2 17 1 2 18 0 0 19 1 2 20 1 0 21 2 10 22 0 2 23 0 2 - 4.36 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
- 32 Total read queries
- 25,951 Total write queries
Queries by database
Key values
- zemm_monitoring Main database
- 24,653 Requests
- 1d7h56m46s (zemm_monitoring)
- Main time consuming database
Database Request type Count Duration postgres Total 9 24s856ms ddl 9 24s856ms zemm_cryo_validate_20260425002602 Total 181 12m43s ddl 102 7m10s others 79 5m33s zemm_dev Total 109 2m44s copy to 14 43s476ms cte 7 6s435ms ddl 74 1m44s select 14 10s897ms zemm_monitoring Total 24,653 1d7h56m46s cte 222 23m38s ddl 24,429 1d7h33m7s select 1 525ms tcl 1 753ms zemm_produktiv_7 Total 142 7m39s copy to 22 1m6s cte 21 17s682ms ddl 44 3m8s others 41 2m55s select 14 10s745ms zemm_produktiv_8 Total 8 13s306ms copy to 7 12s251ms update 1 1s54ms zemm_test Total 1,463 19m56s copy from 8 18s751ms ddl 990 11m27s others 447 7m49s select 3 2s500ms Queries by user
Key values
- labanimal Main user
- 750,147 Requests
User Request type Count Duration deploy Total 241 27m39s cte 4 1m18s ddl 134 11m50s others 88 5m56s select 9 6m3s labanimal Total 750,147 22d15h39m58s copy from 28 3m52s copy to 194 9m13s cte 4,734 5h25m39s ddl 741,269 22d8h50m52s others 667 12m52s select 3,179 56m5s tcl 10 8s726ms update 34 36s402ms postgres Total 184 4m13s copy to 184 4m13s Duration by user
Key values
- 22d15h39m58s (labanimal) Main time consuming user
User Request type Count Duration deploy Total 241 27m39s cte 4 1m18s ddl 134 11m50s others 88 5m56s select 9 6m3s labanimal Total 750,147 22d15h39m58s copy from 28 3m52s copy to 194 9m13s cte 4,734 5h25m39s ddl 741,269 22d8h50m52s others 667 12m52s select 3,179 56m5s tcl 10 8s726ms update 34 36s402ms postgres Total 184 4m13s copy to 184 4m13s Queries by host
Key values
- unknown Main host
- 750,110 Requests
- 22d15h36m19s (unknown)
- Main time consuming host
Host Request type Count Duration 127.0.0.1 Total 2 6s311ms ddl 2 6s311ms 81.169.238.237 Total 35 3m33s select 1 2m56s update 34 36s402ms [local] Total 425 31m52s copy to 184 4m13s cte 4 1m18s ddl 134 11m50s others 88 5m56s select 9 6m3s unknown Total 750,110 22d15h36m19s copy from 28 3m52s copy to 194 9m13s cte 4,734 5h25m39s ddl 741,267 22d8h50m46s others 667 12m52s select 3,178 53m9s tcl 10 8s726ms Queries by application
Key values
- unknown Main application
- 24,653 Requests
- 1d7h56m46s (unknown)
- Main time consuming application
Application Request type Count Duration _backend_wean_api.php_zemm_produktiv_7_localhost_5432 Total 2 1s139ms select 2 1s139ms _backend_wean_api.php_zemm_test_localhost_5432 Total 2 1s898ms select 2 1s898ms _desktop_index.php_command_reports_subcommand_init_zemm_dev_loc Total 14 10s897ms select 14 10s897ms _desktop_index.php_command_reports_subcommand_init_zemm_produkt Total 12 9s606ms select 12 9s606ms _desktop_index.php_command_tasks_subcommand_overview_zemm_produ Total 1 637ms cte 1 637ms _desktop_index.php_zemm_dev_localhost_5432 Total 7 6s435ms cte 7 6s435ms _desktop_index.php_zemm_produktiv_7_localhost_5432 Total 20 17s45ms cte 20 17s45ms _desktop_index.php_zemm_test_localhost_5432 Total 1 602ms select 1 602ms createdb Total 2 4s765ms ddl 2 4s765ms dropdb Total 1 4s217ms ddl 1 4s217ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 Total 1 1s54ms update 1 1s54ms pg_dump Total 43 2m2s copy to 43 2m2s pg_restore Total 1,460 19m54s copy from 8 18s751ms ddl 990 11m27s others 447 7m49s psql Total 346 20m47s ddl 226 12m18s others 120 8m29s unknown Total 24,653 1d7h56m46s cte 222 23m38s ddl 24,429 1d7h33m7s select 1 525ms tcl 1 753ms Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-04-25 10:59:55 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 267 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 50s626ms WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:06:05 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
2 34s679ms WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:21:49 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
3 34s679ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
4 34s679ms 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-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
5 34s679ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
6 34s679ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
7 34s679ms 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-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
8 34s679ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
9 34s679ms CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
10 34s679ms 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-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
11 34s679ms CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
12 34s679ms 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-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
13 34s679ms 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-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
14 34s679ms 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-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
15 34s679ms 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-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
16 34s679ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
17 34s679ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
18 34s679ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
19 34s679ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);[ Date: 2026-04-25 23:22:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
20 34s679ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-04-25 23:23: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 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #1
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
2 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #2
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
3 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #3
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
4 1h51m21s 1,437 547ms 34s679ms 4s649ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
5 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #5
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
6 1h51m21s 1,437 547ms 34s679ms 4s649ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
7 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #7
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
8 1h51m21s 1,437 547ms 34s679ms 4s649ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
9 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #9
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
10 1h51m21s 1,437 547ms 34s679ms 4s649ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
11 1h51m21s 1,437 547ms 34s679ms 4s649ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
12 1h51m21s 1,437 547ms 34s679ms 4s649ms create schema if not exists observability;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
13 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #13
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
14 1h51m21s 1,437 547ms 34s679ms 4s649ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
15 1h51m21s 1,437 547ms 34s679ms 4s649ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
16 1h51m21s 1,437 547ms 34s679ms 4s649ms 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 #16
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
17 1h51m21s 1,437 547ms 34s679ms 4s649ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
18 23m38s 222 3s541ms 50s626ms 6s389ms with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) 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 #18
Day Hour Count Duration Avg duration Apr 25 01 11 45s984ms 4s180ms 02 11 45s785ms 4s162ms 11 14 58s55ms 4s146ms 12 12 48s500ms 4s41ms 13 12 48s567ms 4s47ms 14 12 48s856ms 4s71ms 15 12 51s519ms 4s293ms 16 17 1m12s 4s290ms 17 12 49s672ms 4s139ms 18 12 50s877ms 4s239ms 19 11 44s468ms 4s42ms 20 14 56s303ms 4s21ms 21 12 43s454ms 3s621ms 22 12 45s202ms 3s766ms 23 19 4m2s 12s769ms 00 29 7m45s 16s57ms [ User: labanimal - Total duration: 23m38s - Times executed: 222 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:06:05 Duration: 50s626ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:21:49 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:26:50 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
19 37s71ms 6 3s669ms 6s784ms 6s178ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 25 15 1 6s732ms 6s732ms 20 1 6s622ms 6s622ms 22 2 13s403ms 6s701ms 23 1 6s642ms 6s642ms 00 1 3s669ms 3s669ms [ User: labanimal - Total duration: 33s401ms - Times executed: 5 ]
[ User: postgres - Total duration: 3s669ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 37s71ms - Times executed: 6 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-25 21:18:22 Duration: 6s784ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-25 14:19:20 Duration: 6s732ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-25 22:12:14 Duration: 6s642ms Database: zemm_dev User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
20 26s201ms 6 1s534ms 4s994ms 4s366ms 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 #20
Day Hour Count Duration Avg duration Apr 25 15 1 4s994ms 4s994ms 20 1 4s908ms 4s908ms 22 2 9s794ms 4s897ms 23 1 4s969ms 4s969ms 00 1 1s534ms 1s534ms [ User: labanimal - Total duration: 24s667ms - Times executed: 5 ]
[ User: postgres - Total duration: 1s534ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 26s201ms - Times executed: 6 ]
-
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-04-25 14:19:07 Duration: 4s994ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
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-04-25 22:12:00 Duration: 4s969ms Database: zemm_dev User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
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-04-25 19:53:47 Duration: 4s908ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #1
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
2 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #2
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
3 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #3
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
4 1,437 1h51m21s 547ms 34s679ms 4s649ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
5 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #5
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
6 1,437 1h51m21s 547ms 34s679ms 4s649ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
7 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #7
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
8 1,437 1h51m21s 547ms 34s679ms 4s649ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
9 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #9
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
10 1,437 1h51m21s 547ms 34s679ms 4s649ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
11 1,437 1h51m21s 547ms 34s679ms 4s649ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
12 1,437 1h51m21s 547ms 34s679ms 4s649ms create schema if not exists observability;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
13 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #13
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
14 1,437 1h51m21s 547ms 34s679ms 4s649ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
15 1,437 1h51m21s 547ms 34s679ms 4s649ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
16 1,437 1h51m21s 547ms 34s679ms 4s649ms 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 #16
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
17 1,437 1h51m21s 547ms 34s679ms 4s649ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
18 222 23m38s 3s541ms 50s626ms 6s389ms with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) 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 #18
Day Hour Count Duration Avg duration Apr 25 01 11 45s984ms 4s180ms 02 11 45s785ms 4s162ms 11 14 58s55ms 4s146ms 12 12 48s500ms 4s41ms 13 12 48s567ms 4s47ms 14 12 48s856ms 4s71ms 15 12 51s519ms 4s293ms 16 17 1m12s 4s290ms 17 12 49s672ms 4s139ms 18 12 50s877ms 4s239ms 19 11 44s468ms 4s42ms 20 14 56s303ms 4s21ms 21 12 43s454ms 3s621ms 22 12 45s202ms 3s766ms 23 19 4m2s 12s769ms 00 29 7m45s 16s57ms [ User: labanimal - Total duration: 23m38s - Times executed: 222 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:06:05 Duration: 50s626ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:21:49 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:26:50 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
19 26 20s504ms 754ms 1s104ms 788ms select "groups"."name" AS "group", "licenses"."permission" AS "permission", "licenses"."allowances" AS "allowances", "species"."commonName" AS "species", "a"."species" AS "species_code", sum(a."alive") AS "alive", sum(a."dead") AS "dead", sum(a."leftalive") AS "leftalive", sum(a."alive" + a."used" + a."leftalive") AS "total", sum(a."used") AS "used" from "groups" inner join "licenses" on "licenses"."workgroup" = "groups"."id" and not ("licenses"."deleted") and licenses.proposed_end >= ?::date and licenses.proposed_start <= ?::date inner join ( select "animals"."animalID", "animals"."project", "animals"."species", case when "fates".alive and ("animals"."fate" = ?) then ? else ? end AS "leftalive", case when "fates".alive and ("animals"."fate" = ?) then ? else ? end AS "alive", case when "fates".alive and ("animals"."fate" = ?) then ? when not ("fates".alive) and (("animals"."deathDate" is not null and "animals"."deathDate" >= ? and "animals"."deathDate" >= ?) or ("animals"."outgoingDate" is not null and "animals"."outgoingDate" >= ? and "animals"."outgoingDate" >= ?)) then ? else ? end AS "dead", case when "fates".alive and ("animals"."fate" = ?) then ? when not ("fates".alive) and ("animals"."deathDate" >= ? or "animals"."outgoingDate" >= ?) then ? else ? end AS "used" from "animals" inner join "fates" on "fates"."id" = "animals"."fate" where not ("animals"."deleted")) "a" on cast("a"."project" as bigint) = "licenses"."id" inner join "species" on "species"."id" = "a"."species" where not ("groups"."deleted") group by "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species" order by "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 25 01 2 1s532ms 766ms 13 2 1s534ms 767ms 14 2 1s546ms 773ms 17 2 1s582ms 791ms 18 4 3s410ms 852ms 22 4 3s211ms 802ms 23 2 1s516ms 758ms 00 8 6s169ms 771ms [ User: labanimal - Total duration: 20s504ms - Times executed: 26 ]
[ Application: _desktop_index.php_command_reports_subcommand_init_zemm_dev_loc - Total duration: 10s897ms - Times executed: 14 ]
[ Application: _desktop_index.php_command_reports_subcommand_init_zemm_produkt - Total duration: 9s606ms - Times executed: 12 ]
-
SELECT "groups"."name" AS "group", "licenses"."permission" AS "permission", "licenses"."allowances" AS "allowances", "species"."commonName" AS "species", "a"."species" AS "species_code", SUM(a."alive") AS "alive", SUM(a."dead") AS "dead", SUM(a."leftalive") AS "leftalive", SUM(a."alive" + a."used" + a."leftalive") AS "total", SUM(a."used") AS "used" FROM "groups" INNER JOIN "licenses" ON "licenses"."workgroup" = "groups"."id" AND NOT ("licenses"."deleted") AND licenses.proposed_end >= '2026-01-01'::date AND licenses.proposed_start <= '2026-12-31'::date INNER JOIN ( SELECT "animals"."animalID", "animals"."project", "animals"."species", CASE WHEN "fates".alive AND ("animals"."fate" = 6) THEN 1 ELSE 0 END AS "leftalive", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 1 ELSE 0 END AS "alive", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 0 WHEN NOT ("fates".alive) AND (("animals"."deathDate" IS NOT NULL AND "animals"."deathDate" >= '2026-01-01' AND "animals"."deathDate" >= '2010-04-01') OR ("animals"."outgoingDate" IS NOT NULL AND "animals"."outgoingDate" >= '2026-01-01' AND "animals"."outgoingDate" >= '2010-04-01')) THEN 1 ELSE 0 END AS "dead", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 0 WHEN NOT ("fates".alive) AND ("animals"."deathDate" >= '2010-04-01' OR "animals"."outgoingDate" >= '2010-04-01') THEN 1 ELSE 0 END AS "used" FROM "animals" INNER JOIN "fates" ON "fates"."id" = "animals"."fate" WHERE NOT ("animals"."deleted")) "a" ON CAST("a"."project" AS bigint) = "licenses"."id" INNER JOIN "species" ON "species"."id" = "a"."species" WHERE NOT ("groups"."deleted") GROUP BY "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species" ORDER BY "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species";
Date: 2026-04-25 17:13:16 Duration: 1s104ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_command_reports_subcommand_init_zemm_produkt Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
SELECT "groups"."name" AS "group", "licenses"."permission" AS "permission", "licenses"."allowances" AS "allowances", "species"."commonName" AS "species", "a"."species" AS "species_code", SUM(a."alive") AS "alive", SUM(a."dead") AS "dead", SUM(a."leftalive") AS "leftalive", SUM(a."alive" + a."used" + a."leftalive") AS "total", SUM(a."used") AS "used" FROM "groups" INNER JOIN "licenses" ON "licenses"."workgroup" = "groups"."id" AND NOT ("licenses"."deleted") AND licenses.proposed_end >= '2026-01-01'::date AND licenses.proposed_start <= '2026-12-31'::date INNER JOIN ( SELECT "animals"."animalID", "animals"."project", "animals"."species", CASE WHEN "fates".alive AND ("animals"."fate" = 6) THEN 1 ELSE 0 END AS "leftalive", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 1 ELSE 0 END AS "alive", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 0 WHEN NOT ("fates".alive) AND (("animals"."deathDate" IS NOT NULL AND "animals"."deathDate" >= '2026-01-01' AND "animals"."deathDate" >= '2010-04-01') OR ("animals"."outgoingDate" IS NOT NULL AND "animals"."outgoingDate" >= '2026-01-01' AND "animals"."outgoingDate" >= '2010-04-01')) THEN 1 ELSE 0 END AS "dead", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 0 WHEN NOT ("fates".alive) AND ("animals"."deathDate" >= '2010-04-01' OR "animals"."outgoingDate" >= '2010-04-01') THEN 1 ELSE 0 END AS "used" FROM "animals" INNER JOIN "fates" ON "fates"."id" = "animals"."fate" WHERE NOT ("animals"."deleted")) "a" ON CAST("a"."project" AS bigint) = "licenses"."id" INNER JOIN "species" ON "species"."id" = "a"."species" WHERE NOT ("groups"."deleted") GROUP BY "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species" ORDER BY "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species";
Date: 2026-04-25 21:48:50 Duration: 941ms Database: zemm_dev User: labanimal Application: _desktop_index.php_command_reports_subcommand_init_zemm_dev_loc Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
SELECT "groups"."name" AS "group", "licenses"."permission" AS "permission", "licenses"."allowances" AS "allowances", "species"."commonName" AS "species", "a"."species" AS "species_code", SUM(a."alive") AS "alive", SUM(a."dead") AS "dead", SUM(a."leftalive") AS "leftalive", SUM(a."alive" + a."used" + a."leftalive") AS "total", SUM(a."used") AS "used" FROM "groups" INNER JOIN "licenses" ON "licenses"."workgroup" = "groups"."id" AND NOT ("licenses"."deleted") AND licenses.proposed_end >= '2026-01-01'::date AND licenses.proposed_start <= '2026-12-31'::date INNER JOIN ( SELECT "animals"."animalID", "animals"."project", "animals"."species", CASE WHEN "fates".alive AND ("animals"."fate" = 6) THEN 1 ELSE 0 END AS "leftalive", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 1 ELSE 0 END AS "alive", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 0 WHEN NOT ("fates".alive) AND (("animals"."deathDate" IS NOT NULL AND "animals"."deathDate" >= '2026-01-01' AND "animals"."deathDate" >= '2010-04-01') OR ("animals"."outgoingDate" IS NOT NULL AND "animals"."outgoingDate" >= '2026-01-01' AND "animals"."outgoingDate" >= '2010-04-01')) THEN 1 ELSE 0 END AS "dead", CASE WHEN "fates".alive AND ("animals"."fate" = 5) THEN 0 WHEN NOT ("fates".alive) AND ("animals"."deathDate" >= '2010-04-01' OR "animals"."outgoingDate" >= '2010-04-01') THEN 1 ELSE 0 END AS "used" FROM "animals" INNER JOIN "fates" ON "fates"."id" = "animals"."fate" WHERE NOT ("animals"."deleted")) "a" ON CAST("a"."project" AS bigint) = "licenses"."id" INNER JOIN "species" ON "species"."id" = "a"."species" WHERE NOT ("groups"."deleted") GROUP BY "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species" ORDER BY "groups"."name", "licenses"."permission", "species"."commonName", "licenses"."allowances", "a"."species";
Date: 2026-04-25 16:23:47 Duration: 820ms Database: zemm_produktiv_7 User: labanimal Application: _desktop_index.php_command_reports_subcommand_init_zemm_produkt Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
20 15 9s518ms 623ms 653ms 634ms with matching_roots as ( select tk.id, case when tk.deadline is null then null else tk.deadline::date end as deadline_date, case when tk.time_issued is null then null else tk.time_issued::date end as issued_date, case when tk.time_completed is null then null else tk.time_completed::date end as completed_date from tasks tk where not (tk.deleted) and (( case when tk.task_status::text = ? and tk.time_completed is not null then tk.time_completed::date when tk.deadline is not null then tk.deadline::date when tk.time_issued is not null then tk.time_issued::date else null end) is not null and ( case when tk.task_status::text = ? and tk.time_completed is not null then tk.time_completed::date when tk.deadline is not null then tk.deadline::date when tk.time_issued is not null then tk.time_issued::date else null end) >= ?::date and ( case when tk.task_status::text = ? and tk.time_completed is not null then tk.time_completed::date when tk.deadline is not null then tk.deadline::date when tk.time_issued is not null then tk.time_issued::date else null end) <= ?::date) and (user_is_tgm (tk.owner, ?) or user_is_tgm (tk.editor, ?) or user_is_tgm (tk.agent, ?) or tk.issuer = ?) and tk.parent is null ), series as ( select dd::date as day from generate_series(?::date, ?::date, interval ?) dd ) select to_char(series.day, ?) as day, count(mr.id) filter (where mr.issued_date = series.day) as issued_count, count(mr.id) filter (where mr.completed_date = series.day) as completed_count, count(mr.id) filter (where mr.deadline_date = series.day) as due_count from series left join matching_roots mr on true group by series.day order by series.day;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 25 09 1 637ms 637ms 17 7 4s393ms 627ms 18 7 4s488ms 641ms [ User: labanimal - Total duration: 9s518ms - Times executed: 15 ]
[ Application: _desktop_index.php_zemm_produktiv_7_localhost_5432 - Total duration: 8s881ms - Times executed: 14 ]
[ Application: _desktop_index.php_command_tasks_subcommand_overview_zemm_produ - Total duration: 637ms - Times executed: 1 ]
-
WITH matching_roots AS ( SELECT tk.id, CASE WHEN tk.deadline IS NULL THEN NULL ELSE tk.deadline::date END AS deadline_date, CASE WHEN tk.time_issued IS NULL THEN NULL ELSE tk.time_issued::date END AS issued_date, CASE WHEN tk.time_completed IS NULL THEN NULL ELSE tk.time_completed::date END AS completed_date FROM tasks tk WHERE NOT (tk.deleted) AND (( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) IS NOT NULL AND ( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) >= '2025-06-11'::date AND ( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) <= '2026-04-24'::date) AND (user_is_tgm (tk.owner, 1) OR user_is_tgm (tk.editor, 1) OR user_is_tgm (tk.agent, 1) OR tk.issuer = 1) AND tk.parent IS NULL ), series AS ( SELECT dd::date AS day FROM generate_series('2025-06-11'::date, '2026-04-24'::date, interval '1 day') dd ) SELECT TO_CHAR(series.day, 'YYYY-MM-DD') AS day, COUNT(mr.id) FILTER (WHERE mr.issued_date = series.day) AS issued_count, COUNT(mr.id) FILTER (WHERE mr.completed_date = series.day) AS completed_count, COUNT(mr.id) FILTER (WHERE mr.deadline_date = series.day) AS due_count FROM series LEFT JOIN matching_roots mr ON TRUE GROUP BY series.day ORDER BY series.day;
Date: 2026-04-25 17:22:25 Duration: 653ms 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-04-25_000000.csv
-
WITH matching_roots AS ( SELECT tk.id, CASE WHEN tk.deadline IS NULL THEN NULL ELSE tk.deadline::date END AS deadline_date, CASE WHEN tk.time_issued IS NULL THEN NULL ELSE tk.time_issued::date END AS issued_date, CASE WHEN tk.time_completed IS NULL THEN NULL ELSE tk.time_completed::date END AS completed_date FROM tasks tk WHERE NOT (tk.deleted) AND (( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) IS NOT NULL AND ( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) >= '2025-06-11'::date AND ( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) <= '2026-04-24'::date) AND (user_is_tgm (tk.owner, 1) OR user_is_tgm (tk.editor, 1) OR user_is_tgm (tk.agent, 1) OR tk.issuer = 1) AND tk.parent IS NULL ), series AS ( SELECT dd::date AS day FROM generate_series('2025-06-11'::date, '2026-04-24'::date, interval '1 day') dd ) SELECT TO_CHAR(series.day, 'YYYY-MM-DD') AS day, COUNT(mr.id) FILTER (WHERE mr.issued_date = series.day) AS issued_count, COUNT(mr.id) FILTER (WHERE mr.completed_date = series.day) AS completed_count, COUNT(mr.id) FILTER (WHERE mr.deadline_date = series.day) AS due_count FROM series LEFT JOIN matching_roots mr ON TRUE GROUP BY series.day ORDER BY series.day;
Date: 2026-04-25 17:22:54 Duration: 642ms 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-04-25_000000.csv
-
WITH matching_roots AS ( SELECT tk.id, CASE WHEN tk.deadline IS NULL THEN NULL ELSE tk.deadline::date END AS deadline_date, CASE WHEN tk.time_issued IS NULL THEN NULL ELSE tk.time_issued::date END AS issued_date, CASE WHEN tk.time_completed IS NULL THEN NULL ELSE tk.time_completed::date END AS completed_date FROM tasks tk WHERE NOT (tk.deleted) AND (( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) IS NOT NULL AND ( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) >= '2025-06-11'::date AND ( CASE WHEN tk.task_status::text = '5' AND tk.time_completed IS NOT NULL THEN tk.time_completed::date WHEN tk.deadline IS NOT NULL THEN tk.deadline::date WHEN tk.time_issued IS NOT NULL THEN tk.time_issued::date ELSE NULL END) <= '2026-04-24'::date) AND (user_is_tgm (tk.owner, 1) OR user_is_tgm (tk.editor, 1) OR user_is_tgm (tk.agent, 1) OR tk.issuer = 1) AND tk.parent IS NULL ), series AS ( SELECT dd::date AS day FROM generate_series('2025-06-11'::date, '2026-04-24'::date, interval '1 day') dd ) SELECT TO_CHAR(series.day, 'YYYY-MM-DD') AS day, COUNT(mr.id) FILTER (WHERE mr.issued_date = series.day) AS issued_count, COUNT(mr.id) FILTER (WHERE mr.completed_date = series.day) AS completed_count, COUNT(mr.id) FILTER (WHERE mr.deadline_date = series.day) AS due_count FROM series LEFT JOIN matching_roots mr ON TRUE GROUP BY series.day ORDER BY series.day;
Date: 2026-04-25 17:22:32 Duration: 642ms 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-04-25_000000.csv
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 3s541ms 50s626ms 6s389ms 222 23m38s with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) 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 #1
Day Hour Count Duration Avg duration Apr 25 01 11 45s984ms 4s180ms 02 11 45s785ms 4s162ms 11 14 58s55ms 4s146ms 12 12 48s500ms 4s41ms 13 12 48s567ms 4s47ms 14 12 48s856ms 4s71ms 15 12 51s519ms 4s293ms 16 17 1m12s 4s290ms 17 12 49s672ms 4s139ms 18 12 50s877ms 4s239ms 19 11 44s468ms 4s42ms 20 14 56s303ms 4s21ms 21 12 43s454ms 3s621ms 22 12 45s202ms 3s766ms 23 19 4m2s 12s769ms 00 29 7m45s 16s57ms [ User: labanimal - Total duration: 23m38s - Times executed: 222 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:05:14+02' AND '2026-04-25 23:05:14+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:06:05 Duration: 50s626ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:21:15+02' AND '2026-04-25 23:21:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:21:49 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at <= '2026-04-25 11:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'test', 'dev') AND collected_at BETWEEN '2026-04-25 11:26:15+02' AND '2026-04-25 23:26:15+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) 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-04-25 23:26:50 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
2 3s669ms 6s784ms 6s178ms 6 37s71ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 25 15 1 6s732ms 6s732ms 20 1 6s622ms 6s622ms 22 2 13s403ms 6s701ms 23 1 6s642ms 6s642ms 00 1 3s669ms 3s669ms [ User: labanimal - Total duration: 33s401ms - Times executed: 5 ]
[ User: postgres - Total duration: 3s669ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 37s71ms - Times executed: 6 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-25 21:18:22 Duration: 6s784ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-25 14:19:20 Duration: 6s732ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-25 22:12:14 Duration: 6s642ms Database: zemm_dev User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
3 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 #3
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
4 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 #4
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
5 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 #5
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
6 547ms 34s679ms 4s649ms 1,437 1h51m21s create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
7 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 #7
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
8 547ms 34s679ms 4s649ms 1,437 1h51m21s create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
9 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 #9
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
10 547ms 34s679ms 4s649ms 1,437 1h51m21s create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
11 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
12 547ms 34s679ms 4s649ms 1,437 1h51m21s create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
13 547ms 34s679ms 4s649ms 1,437 1h51m21s create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
14 547ms 34s679ms 4s649ms 1,437 1h51m21s create schema if not exists observability;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
15 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 #15
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
16 547ms 34s679ms 4s649ms 1,437 1h51m21s create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
17 547ms 34s679ms 4s649ms 1,437 1h51m21s alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
18 547ms 34s679ms 4s649ms 1,437 1h51m21s 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 #18
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
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-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
19 547ms 34s679ms 4s649ms 1,437 1h51m21s alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 25 01 60 3m39s 3s661ms 02 60 4m6s 4s111ms 03 60 4m17s 4s287ms 04 60 4m17s 4s287ms 05 60 4m17s 4s287ms 06 60 4m17s 4s287ms 07 60 4m17s 4s287ms 08 60 4m17s 4s287ms 09 60 1m7s 1s124ms 10 60 38s239ms 637ms 11 60 2m34s 2s582ms 12 60 4m2s 4s39ms 13 60 4m3s 4s52ms 14 60 3m50s 3s845ms 15 60 3m59s 3s994ms 16 60 4m10s 4s179ms 17 60 3m45s 3s753ms 18 60 3m49s 3s832ms 19 60 4m2s 4s41ms 20 58 3m38s 3s775ms 21 60 3m36s 3s608ms 22 59 3m18s 3s358ms 23 60 15m10s 15s179ms 00 60 16m2s 16s37ms [ User: labanimal - Total duration: 1h51m21s - Times executed: 1432 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:26:01 Duration: 34s679ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:28:01 Duration: 34s362ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-25 23:37:01 Duration: 34s258ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
20 1s534ms 4s994ms 4s366ms 6 26s201ms 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 #20
Day Hour Count Duration Avg duration Apr 25 15 1 4s994ms 4s994ms 20 1 4s908ms 4s908ms 22 2 9s794ms 4s897ms 23 1 4s969ms 4s969ms 00 1 1s534ms 1s534ms [ User: labanimal - Total duration: 24s667ms - Times executed: 5 ]
[ User: postgres - Total duration: 1s534ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 26s201ms - Times executed: 6 ]
-
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-04-25 14:19:07 Duration: 4s994ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
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-04-25 22:12:00 Duration: 4s969ms Database: zemm_dev User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
-
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-04-25 19:53:47 Duration: 4s908ms Database: zemm_produktiv_7 User: labanimal Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-25_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
- 123,007 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 3 FATAL entries
- 9 ERROR entries
- 0 WARNING entries
- 490 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 479 Max number of times the same event was reported
- 502 Total events found
Rank Times reported Error 1 479 FATAL: database "..." does not exist
Times Reported Most Frequent Error / Event #1
Day Hour Count Apr 25 15 3 20 1 22 120 23 227 00 128 - FATAL: database "bucardo" does not exist
- FATAL: database "zemm_test" does not exist
- FATAL: database "zemm_test" does not exist
Date: 2026-04-25 14:04:42 Database: bucardo Application: User: bucardo Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Date: 2026-04-25 14:09:10 Database: zemm_test Application: psql SSL enabled (protocol=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384, bits=256) User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Date: 2026-04-25 14:09:10 Database: zemm_test Application: psql SSL enabled (protocol=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384, bits=256) User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
2 8 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Apr 25 20 1 22 1 00 6 - ERROR: duplicate key value violates unique constraint "metrics_timeseries_tenant_key_metric_name_bucket_start_buck_key"
- ERROR: duplicate key value violates unique constraint "sys_screens_idx1"
- ERROR: duplicate key value violates unique constraint "metrics_timeseries_tenant_key_metric_name_bucket_start_buck_key"
Detail: Key (tenant_key, metric_name, bucket_start, bucket_width_seconds)=(test, http_requests_total, 2026-04-25 19:41:00+02, 60) already exists.
Statement: INSERT INTO observability.metrics_timeseries (tenant_key, metric_name, bucket_start, bucket_width_seconds, sum_value, count_value, histogram) VALUES ($1, $2, $3, $4, $5, $6, $7)Date: 2026-04-25 19:41:25 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Detail: Key (sys_id)=(10100001) already exists.
Statement: INSERT INTO public.sys_screens ( command, sub_command, class, file, description, parent, sort_flag ) SELECT 'pharmacy', 'init;search;save;select', 'ScreenPharmacy', 'ScreenPharmacy.php', 'Pharmacy', NULL, 16 WHERE NOT EXISTS ( SELECT 1 FROM public.sys_screens WHERE command = 'pharmacy' AND class = 'ScreenPharmacy' );Date: 2026-04-25 21:50:52 Database: zemm_dev Application: psql User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Detail: Key (tenant_key, metric_name, bucket_start, bucket_width_seconds)=(test, http_requests_total, 2026-04-25 23:05:00+02, 60) already exists.
Statement: INSERT INTO observability.metrics_timeseries (tenant_key, metric_name, bucket_start, bucket_width_seconds, sum_value, count_value, histogram) VALUES ($1, $2, $3, $4, $5, $6, $7)Date: 2026-04-25 23:05:10 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
3 7 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #3
Day Hour Count Apr 25 01 1 09 1 12 2 18 3 - ERROR: column a.animalID does not exist
- ERROR: column "fullname" does not exist
- ERROR: column "name" does not exist
Hint: Perhaps you meant to reference the column "a.animalid".
Statement: CREATE OR REPLACE VIEW public.v_cryo_inventory AS WITH current_placement AS ( SELECT p.sample_id, p.position_id, bp.position_label, box.id AS box_id, box.code AS box_code, COALESCE(box.label, box.code) AS box_label, rack.id AS rack_id, rack.code AS rack_code, COALESCE(rack.label, rack.code) AS rack_label, tank.id AS tank_id, tank.code AS tank_code, COALESCE(tank.label, tank.code) AS tank_label FROM public.cryo_sample_placements p JOIN public.cryo_box_positions bp ON bp.id = p.position_id JOIN public.cryo_storage_units box ON box.id = bp.box_id AND box.unit_type = 'box' JOIN public.cryo_storage_units rack ON rack.id = box.parent_id AND rack.unit_type = 'rack' JOIN public.cryo_storage_units tank ON tank.id = rack.parent_id AND tank.unit_type = 'tank' WHERE p.removed_at IS NULL ), donors AS ( SELECT d.sample_id, string_agg( COALESCE(a."animalID", a.name, a.id::text) || ' (' || d.donor_role || ')', ', ' ORDER BY d.donor_role, a.id ) AS donor_summary FROM public.cryo_sample_donors d JOIN public.animals a ON a.id = d.animal_id GROUP BY d.sample_id ), latest_qc AS ( SELECT DISTINCT ON (q.sample_id) q.sample_id, q.qc_status, q.qc_type, q.motility_percent, q.embryo_count, q.viable_embryo_count, q.thaw_success_percent, q.performed_at FROM public.cryo_qc_results q WHERE q.sample_id IS NOT NULL ORDER BY q.sample_id, COALESCE(q.performed_at, q.created_at) DESC, q.id DESC ), active_reservation AS ( SELECT r.sample_id, r.id AS reservation_id, r.reserved_by_user_id, r.reserved_for_user_id, r.license_id, r.purpose, r.reserved_at, r.expires_at, r.status AS reservation_status FROM public.cryo_reservations r WHERE r.status = 'active' ) SELECT s.id AS sample_id, s.sample_uid, s.sample_type, s.status AS sample_status, s.genotype, s.freeze_date, s.container_type, s.quantity_value, s.quantity_unit, b.id AS batch_id, b.batch_code, st.id AS strain_id, st.name AS strain_name, sp.id AS species_id, COALESCE(sp."commonName", sp.code, sp.latin) AS species_name, l.id AS license_id, l.application_id AS license_application_id, l.title AS license_title, s.responsible_user_id, COALESCE(u."fullName", u.username, u.name) AS responsible_name, COALESCE(donors.donor_summary, s.donor_summary) AS donor_summary, latest_qc.qc_status, latest_qc.qc_type, latest_qc.motility_percent, latest_qc.embryo_count, latest_qc.viable_embryo_count, latest_qc.thaw_success_percent, active_reservation.reservation_id, active_reservation.reservation_status, active_reservation.purpose AS reservation_purpose, cp.tank_id, cp.rack_id, cp.box_id, cp.position_id, cp.position_label, CASE WHEN cp.position_id IS NULL THEN NULL ELSE cp.tank_label || ' / ' || cp.rack_label || ' / ' || cp.box_label || ' / ' || cp.position_label END AS storage_path FROM public.cryo_samples s LEFT JOIN public.cryo_batches b ON b.id = s.batch_id LEFT JOIN public.strains st ON st.id = COALESCE(s.strain_id, b.strain_id) LEFT JOIN public.species sp ON sp.id = COALESCE(s.species_id, b.species_id) LEFT JOIN public.licenses l ON l.id = COALESCE(s.license_id, b.license_id) LEFT JOIN public.users u ON u.id = s.responsible_user_id LEFT JOIN current_placement cp ON cp.sample_id = s.id LEFT JOIN donors ON donors.sample_id = s.id LEFT JOIN latest_qc ON latest_qc.sample_id = s.id LEFT JOIN active_reservation ON active_reservation.sample_id = s.id WHERE NOT s.deleted;Date: 2026-04-25 00:28:36 Database: zemm_cryo_validate_20260425002602 Application: psql User: deploy Remote: [local] Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Hint: Perhaps you meant to reference the column "users.fullName".
Statement: SELECT id, username, name, fullName, role FROM users WHERE username ILIKE '%admin%' OR name ILIKE '%admin%' OR fullName ILIKE '%admin%' ORDER BY id LIMIT 10;Date: 2026-04-25 08:02:12 Database: zemm_produktiv_7 Application: psql User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Statement: SELECT 'sys_screens|' || row_to_json(s)::text FROM (SELECT * FROM sys_screens WHERE lower(coalesce(name,'')) LIKE '%cryo%' OR lower(coalesce(label,'')) LIKE '%cryo%' OR lower(coalesce(screen,'')) LIKE '%cryo%' ORDER BY 1 LIMIT 50) s;
Date: 2026-04-25 11:02:52 Database: zemm_produktiv_7 Application: psql User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
4 3 LOG: skipping analyze of "..." --- lock not available
Times Reported Most Frequent Error / Event #4
Day Hour Count Apr 25 15 3 - LOG: skipping analyze of "cages" --- lock not available
- LOG: skipping analyze of "licenses" --- lock not available
- LOG: skipping analyze of "targetgroups" --- lock not available
Date: 2026-04-25 14:20:04 Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Date: 2026-04-25 14:20:04 Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Date: 2026-04-25 14:20:08 Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
5 2 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Apr 25 15 2 - ERROR: syntax error at or near "SQL"
- ERROR: syntax error at or near "SQL"
Statement: SQL
Date: 2026-04-25 14:17:42 Database: zemm_produktiv_7 Application: psql User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
Statement: SQL
Date: 2026-04-25 14:17:42 Database: zemm_produktiv_7 Application: psql User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
6 1 ERROR: column "..." of relation "..." already exists
Times Reported Most Frequent Error / Event #6
Day Hour Count Apr 25 01 1 - ERROR: column "animalid" of relation "animals" already exists
Statement: ALTER TABLE public.animals RENAME COLUMN animalid TO animalID;
Date: 2026-04-25 00:28:48 Database: zemm_cryo_validate_20260425002602 Application: psql User: deploy Remote: [local] Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
7 1 ERROR: operator is not unique: text || "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Apr 25 12 1 - ERROR: operator is not unique: text || "char"
Hint: Could not choose a best candidate operator. You might need to add explicit type casts.
Statement: SELECT 'relation|' || n.nspname || '.' || c.relname || '|' || c.relkind FROM pg_class c JOIN pg_namespace n ON n.oid=c.relnamespace WHERE n.nspname ILIKE 'bucardo' OR c.relname ILIKE '%bucardo%' ORDER BY 1;Date: 2026-04-25 11:02:22 Database: zemm_produktiv_7 Application: psql User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv
8 1 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #8
Day Hour Count Apr 25 12 1 - ERROR: relation "tmp_counts" does not exist
Statement: SELECT 'row_count|' || name || '|' || row_count FROM tmp_counts ORDER BY name;
Date: 2026-04-25 11:02:52 Database: zemm_produktiv_7 Application: psql User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-04-25_000000.csv