LCOV - differential code coverage report
Current view: top level - src/backend/utils/adt - pgstatfuncs.c (source / functions) Coverage Total Hit UNC LBC UBC GBC GNC CBC DCB
Current: ba12a202ce1b5581dc0ed149cf3f637d7897ad5d vs 2866d8c7dbfc9d882a7d80fef93fbbe763709932 Lines: 71.0 % 967 687 7 1 272 1 33 653 10
Current Date: 2026-08-27 14:31:44 +0300 Functions: 54.6 % 152 83 6 63 1 11 71 2
Baseline: lcov-20260827-baseline Branches: 50.8 % 559 284 20 1 254 4 14 266
Baseline Date: 2026-08-27 14:31:58 +0300 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 64.7 % 17 11 6 11
(30,360] days: 82.2 % 101 83 1 17 22 61
(360..) days: 69.8 % 849 593 1 255 1 592
Function coverage date bins:
(7,30] days: 53.8 % 13 7 6 7
(30,360] days: 100.0 % 6 6 4 2
(360..) days: 52.6 % 133 70 63 1 69
Branch coverage date bins:
(7,30] days: 36.7 % 30 11 19 11
(30,360] days: 53.1 % 32 17 1 14 3 14
(360..) days: 51.5 % 497 256 1 240 4 252

Function Name Sort by function name TLA Hit count Sort by function hit count Lines Sort by unexercised lines in function Branches Sort by unexercised branches in function
pg_stat_get_activity CBC 916 86.8 % (164 / 189) 82.4 % (75 / 91)
pg_stat_get_progress_info CBC 13 73.7 % (28 / 38) 50.0 % (14 / 28)
pg_stat_get_backend_client_port UBC 0 0.0 % (0 / 21) 0.0 % (0 / 13)
pg_stat_get_backend_client_addr UBC 0 0.0 % (0 / 20) 0.0 % (0 / 12)
pg_stat_get_backend_wait_event UBC 0 0.0 % (0 / 15) 0.0 % (0 / 12)
pg_stat_get_backend_wait_event_type UBC 0 0.0 % (0 / 15) 0.0 % (0 / 12)
pg_stat_get_backend_activity UBC 0 0.0 % (0 / 13) 0.0 % (0 / 8)
pg_stat_get_backend_activity_start UBC 0 0.0 % (0 / 10) 0.0 % (0 / 8)
pg_stat_get_backend_start UBC 0 0.0 % (0 / 10) 0.0 % (0 / 8)
pg_stat_get_backend_xact_start UBC 0 0.0 % (0 / 10) 0.0 % (0 / 8)
pg_stat_get_db_numbackends UBC 0 0.0 % (0 / 9) 0.0 % (0 / 4)
pg_stat_get_last_autoanalyze_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 4)
pg_stat_reset_backend_stats CBC 4 73.3 % (11 / 15) 50.0 % (4 / 8)
pg_stat_reset_subscription_stats CBC 12 87.5 % (7 / 8) 50.0 % (3 / 6)
pgstat_get_io_byte_index CBC 67968 90.9 % (10 / 11) 57.1 % (4 / 7)
pgstat_get_io_op_index CBC 67968 94.7 % (18 / 19) 72.7 % (8 / 11)
pgstat_get_io_time_index CBC 67968 93.3 % (14 / 15) 66.7 % (6 / 9)
pg_stat_get_autoanalyze_count UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_autovacuum_count UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_backend_dbid UBC 0 0.0 % (0 / 5) 0.0 % (0 / 2)
pg_stat_get_backend_subxact UBC 0 0.0 % (0 / 15) 0.0 % (0 / 2)
pg_stat_get_backend_userid UBC 0 0.0 % (0 / 5) 0.0 % (0 / 2)
pg_stat_get_db_active_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_blk_read_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_blk_write_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_blocks_fetched UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_blocks_hit UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_idle_in_transaction_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_session_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_sessions_abandoned UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_sessions_fatal UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_sessions_killed UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_stat_reset_time CBC 24 75.0 % (6 / 8) 50.0 % (2 / 4)
pg_stat_get_db_temp_bytes UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_temp_files UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_tuples_deleted UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_tuples_fetched UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_tuples_inserted UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_tuples_returned UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_tuples_updated UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_xact_commit UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_db_xact_rollback UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_idx_tuples_returned UNC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_ins_since_vacuum UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_mod_since_analyze UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_subscription_stats CBC 42 94.4 % (34 / 36) 75.0 % (6 / 8)
pg_stat_get_total_analyze_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_total_autoanalyze_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_total_autovacuum_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_total_vacuum_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_tuples_newpage_updated UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_blocks_fetched UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_blocks_hit UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_function_self_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_function_total_time UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_idx_blocks_fetched UNC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_idx_blocks_hit UNC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_idx_numscans UNC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_idx_tuples_fetched UNC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_idx_tuples_returned UNC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_numscans UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_tuples_deleted UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_tuples_fetched UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_tuples_hot_updated UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_tuples_newpage_updated UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_tuples_returned UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_get_xact_tuples_updated UBC 0 0.0 % (0 / 1) 0.0 % (0 / 2)
pg_stat_reset_shared CBC 44 71.0 % (22 / 31) 90.0 % (18 / 20)
pg_stat_get_analyze_count CBC 2 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_archiver CBC 27 96.9 % (31 / 32) 90.0 % (9 / 10)
pg_stat_get_backend_io CBC 36 100.0 % (11 / 11) 75.0 % (3 / 4)
pg_stat_get_backend_lock GNC 8 88.9 % (8 / 9) 50.0 % (1 / 2)
pg_stat_get_backend_pid CBC 63 80.0 % (4 / 5) 50.0 % (1 / 2)
pg_stat_get_backend_wal CBC 8 85.7 % (6 / 7) 50.0 % (1 / 2)
pg_stat_get_blocks_fetched CBC 52 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_blocks_hit CBC 104 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_checksum_failures CBC 18 83.3 % (5 / 6) 50.0 % (1 / 2)
pg_stat_get_db_checksum_last_failure CBC 16 87.5 % (7 / 8) 75.0 % (3 / 4)
pg_stat_get_db_conflict_all CBC 1 90.9 % (10 / 11) 50.0 % (1 / 2)
pg_stat_get_db_conflict_bufferpin CBC 1 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_conflict_lock CBC 1 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_conflict_logicalslot CBC 6 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_conflict_snapshot CBC 1 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_conflict_startup_deadlock CBC 1 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_conflict_tablespace CBC 1 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_deadlocks CBC 1 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_parallel_workers_launched CBC 8 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_parallel_workers_to_launch CBC 8 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_db_sessions CBC 8 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_function_stat_reset_time CBC 2 87.5 % (7 / 8) 75.0 % (3 / 4)
pg_stat_get_idx_blocks_fetched GNC 24 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_idx_blocks_hit GNC 48 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_idx_lastscan GNC 32 100.0 % (1 / 1) 75.0 % (3 / 4)
pg_stat_get_idx_numscans GNC 59 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_idx_stat_reset_time GNC 8 100.0 % (1 / 1) 75.0 % (3 / 4)
pg_stat_get_idx_tuples_fetched GNC 24 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_io CBC 94 100.0 % (11 / 11) 83.3 % (5 / 6)
pg_stat_get_last_analyze_time CBC 64 100.0 % (1 / 1) 75.0 % (3 / 4)
pg_stat_get_last_autovacuum_time GBC 7 100.0 % (1 / 1) 75.0 % (3 / 4)
pg_stat_get_last_vacuum_time CBC 48 100.0 % (1 / 1) 75.0 % (3 / 4)
pg_stat_get_lastscan CBC 28 100.0 % (1 / 1) 75.0 % (3 / 4)
pg_stat_get_stat_reset_time CBC 16 100.0 % (1 / 1) 75.0 % (3 / 4)
pg_stat_get_tuples_fetched CBC 8 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_get_tuples_hot_updated CBC 10 100.0 % (1 / 1) 50.0 % (1 / 2)
pg_stat_lock_build_tuples GNC 20 100.0 % (16 / 16) 83.3 % (5 / 6)
pg_stat_reset_single_index_counters GNC 4 100.0 % (5 / 5) 50.0 % (1 / 2)
pg_stat_get_backend_idset CBC 67 100.0 % (13 / 13) 100.0 % (4 / 4)
pg_stat_get_dead_tuples CBC 93 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_function_calls CBC 157 100.0 % (5 / 5) 100.0 % (2 / 2)
pg_stat_get_function_self_time CBC 77 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_function_total_time CBC 77 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_live_tuples CBC 141 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_numscans CBC 43 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_replication_slot CBC 52 100.0 % (43 / 43) 100.0 % (6 / 6)
pg_stat_get_slru CBC 71 100.0 % (23 / 23) 100.0 % (2 / 2)
pg_stat_get_snapshot_timestamp CBC 40 100.0 % (5 / 5) 100.0 % (2 / 2)
pg_stat_get_tuples_deleted CBC 39 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_tuples_inserted CBC 115 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_tuples_returned CBC 27 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_tuples_updated CBC 47 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_vacuum_count CBC 5732 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_get_xact_function_calls CBC 16 100.0 % (5 / 5) 100.0 % (2 / 2)
pg_stat_get_xact_tuples_inserted CBC 32 100.0 % (1 / 1) 100.0 % (2 / 2)
pg_stat_io_build_tuples CBC 1532 100.0 % (39 / 39) 100.0 % (22 / 22)
pg_stat_reset_replication_slot CBC 6 100.0 % (7 / 7) 100.0 % (2 / 2)
pg_stat_reset_single_table_counters CBC 22 100.0 % (5 / 5) 100.0 % (2 / 2)
pg_stat_reset_slru CBC 8 100.0 % (7 / 7) 100.0 % (2 / 2)
pg_stat_wal_build_tuple CBC 49 100.0 % (23 / 23) 100.0 % (2 / 2)
pg_backend_pid CBC 1256 100.0 % (2 / 2)
pg_stat_clear_snapshot CBC 10 100.0 % (3 / 3)
pg_stat_force_next_flush CBC 342 100.0 % (3 / 3)
pg_stat_get_bgwriter_buf_written_clean UBC 0 0.0 % (0 / 2)
pg_stat_get_bgwriter_maxwritten_clean UBC 0 0.0 % (0 / 2)
pg_stat_get_bgwriter_stat_reset_time CBC 8 100.0 % (2 / 2)
pg_stat_get_buf_alloc UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_buffers_written UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_num_performed UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_num_requested CBC 12 100.0 % (2 / 2)
pg_stat_get_checkpointer_num_timed CBC 4 100.0 % (2 / 2)
pg_stat_get_checkpointer_restartpoints_performed UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_restartpoints_requested UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_restartpoints_timed UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_slru_written UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_stat_reset_time CBC 12 100.0 % (2 / 2)
pg_stat_get_checkpointer_sync_time UBC 0 0.0 % (0 / 2)
pg_stat_get_checkpointer_write_time UBC 0 0.0 % (0 / 2)
pg_stat_get_wal CBC 41 100.0 % (3 / 3)
pg_stat_have_stats CBC 98 100.0 % (6 / 6)
pg_stat_reset CBC 15 100.0 % (3 / 3)
pg_stat_reset_single_function_counters CBC 2 100.0 % (4 / 4)

Generated by: LCOV version 2.0-1