LCOV - differential code coverage report
Current view: top level - src/backend/utils/error - elog.c (source / functions) Coverage Total Hit UNC LBC UIC UBC GBC GNC CBC EUB DUB DCB
Current: 380a8b2ea024c33a35e7abc8628e7c4f52f9f9f9 vs db5ed03217b9c238703df8b4b286115d6e940488 Lines: 69.9 % 1367 956 19 1 1 390 2 110 844 1 7 17
Current Date: 2026-05-29 21:51:00 -0400 Functions: 91.7 % 84 77 3 4 20 57 1 9
Baseline: lcov-20260530-034037-baseline Branches: 51.6 % 973 502 16 1 454 1 66 435 6 4
Baseline Date: 2026-05-29 14:39:03 -0700 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 90.0 % 10 9 1 9
(30,360] days: 80.2 % 126 101 18 7 101 1
(360..) days: 68.7 % 1231 846 1 1 383 2 844
Function coverage date bins:
(7,30] days: 90.0 % 10 9 1 9
(30,360] days: 60.0 % 5 3 1 1 3
(360..) days: 94.2 % 69 65 1 3 8 57
Branch coverage date bins:
(30,360] days: 80.5 % 82 66 16 66
(360..) days: 48.9 % 891 436 1 454 1 435

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
CopyErrorData GNC 3657 95.2 % (40 / 42) 70.0 % (28 / 40)
DebugFileOpen CBC 23190 25.0 % (3 / 12) 5.6 % (1 / 18)
EmitErrorReport CBC 334248 93.8 % (15 / 16) 66.7 % (8 / 12)
FlushErrorState CBC 34876 100.0 % (5 / 5)
FreeErrorData CBC 72 100.0 % (4 / 4)
FreeErrorDataContents CBC 117 92.3 % (24 / 26) 87.5 % (21 / 24)
GetErrorContextStack CBC 32 100.0 % (11 / 11) 100.0 % (2 / 2)
ReThrowError CBC 38 81.8 % (27 / 33) 69.2 % (18 / 26)
ThrowErrorData CBC 52 73.0 % (27 / 37) 57.1 % (16 / 28)
append_with_tabs CBC 382909 100.0 % (6 / 6) 100.0 % (8 / 8)
assign_backtrace_functions CBC 1292 100.0 % (3 / 3)
assign_log_destination CBC 1293 100.0 % (3 / 3)
assign_log_min_messages GNC 1842 100.0 % (4 / 4) 100.0 % (2 / 2)
assign_syslog_facility CBC 1292 42.9 % (3 / 7) 25.0 % (1 / 4)
assign_syslog_ident CBC 1292 75.0 % (6 / 8) 33.3 % (2 / 6)
backtrace_cleanup UNC 0 0.0 % (0 / 2)
check_backtrace_functions GNC 1292 30.4 % (7 / 23) 12.5 % (2 / 16)
check_log_destination CBC 1293 63.3 % (19 / 30) 66.7 % (12 / 18)
check_log_min_messages GNC 1844 90.7 % (78 / 86) 85.7 % (48 / 56)
check_log_of_query CBC 319080 100.0 % (8 / 8) 100.0 % (6 / 6)
err_generic_string CBC 9014 90.9 % (20 / 22) 50.0 % (6 / 12)
err_gettext CBC 447171 100.0 % (4 / 4) 100.0 % (2 / 2)
err_sendstring CBC 386018 80.0 % (4 / 5) 50.0 % (1 / 2)
errbacktrace UBC 0 0.0 % (0 / 9) 0.0 % (0 / 4)
errcode CBC 38909 100.0 % (5 / 5) 25.0 % (1 / 4)
errcode_for_file_access CBC 100 57.1 % (20 / 35) 42.9 % (6 / 14)
errcode_for_socket_access CBC 38 72.7 % (8 / 11) 33.3 % (2 / 6)
errdetail_log_plural CBC 52 100.0 % (9 / 9) 33.3 % (4 / 12)
errdetail_plural CBC 39 100.0 % (9 / 9) 33.3 % (4 / 12)
errfinish GNC 337866 92.7 % (38 / 41) 73.5 % (25 / 34)
errhidecontext CBC 24168 100.0 % (5 / 5) 25.0 % (1 / 4)
errhidestmt CBC 235405 100.0 % (5 / 5) 25.0 % (1 / 4)
errhint GNC 3430 100.0 % (9 / 9) 40.0 % (4 / 10)
errhint_internal GNC 53 100.0 % (9 / 9) 37.5 % (3 / 8)
errhint_plural CBC 6 100.0 % (9 / 9) 33.3 % (4 / 12)
errmsg_plural CBC 728 100.0 % (10 / 10) 33.3 % (4 / 12)
error_severity GNC 368317 80.0 % (24 / 30) 77.8 % (7 / 9)
errposition CBC 10087 100.0 % (5 / 5) 25.0 % (1 / 4)
errsave_finish CBC 6165 93.3 % (14 / 15) 50.0 % (3 / 6)
errsave_start CBC 36463 100.0 % (15 / 15) 83.3 % (5 / 6)
errstart CBC 50191118 80.6 % (29 / 36) 78.1 % (25 / 32)
errstart_cold CBC 29056 100.0 % (2 / 2)
format_elog_string GNC 107 100.0 % (10 / 10) 55.6 % (10 / 18)
get_backend_type_for_log GNC 382969 88.9 % (8 / 9) 83.3 % (5 / 6)
get_error_stack_entry CBC 338828 77.8 % (7 / 9) 25.0 % (1 / 4)
get_formatted_log_time CBC 383166 100.0 % (12 / 12) 100.0 % (4 / 4)
get_formatted_start_time CBC 40 100.0 % (7 / 7) 100.0 % (2 / 2)
geterrcode CBC 5640 100.0 % (4 / 4) 25.0 % (1 / 4)
geterrposition CBC 9647 100.0 % (4 / 4) 25.0 % (1 / 4)
getinternalerrposition CBC 154 100.0 % (4 / 4) 25.0 % (1 / 4)
in_error_recursion_trouble CBC 1171597 100.0 % (2 / 2)
internalerrposition CBC 300 100.0 % (5 / 5) 25.0 % (1 / 4)
internalerrquery CBC 292 100.0 % (9 / 9) 62.5 % (5 / 8)
is_log_level_output GNC 51637938 83.3 % (10 / 12) 72.2 % (13 / 18)
log_line_prefix CBC 383126 100.0 % (3 / 3)
log_min_messages_cmp GNC 48 100.0 % (8 / 8) 100.0 % (4 / 4)
log_status_format CBC 383126 22.7 % (45 / 198) 16.9 % (25 / 148)
matches_backtrace_functions CBC 337866 30.0 % (3 / 10) 10.0 % (1 / 10)
message_level_is_interesting CBC 1127741 100.0 % (6 / 6) 83.3 % (5 / 6)
pg_re_throw CBC 75637 25.0 % (3 / 12) 16.7 % (1 / 6)
pre_format_elog_string CBC 107 100.0 % (4 / 4)
process_log_prefix_padding UBC 0 0.0 % (0 / 15) 0.0 % (0 / 10)
reset_formatted_start_time CBC 17601 100.0 % (3 / 3)
send_message_to_frontend CBC 49237 97.3 % (72 / 74) 85.0 % (34 / 40)
send_message_to_server_log GNC 319040 68.8 % (66 / 96) 65.2 % (43 / 66)
set_backtrace UNC 0 0.0 % (0 / 11) 0.0 % (0 / 4)
set_errcontext_domain CBC 29867 100.0 % (5 / 5) 50.0 % (3 / 6)
set_errdata_field CBC 9014 100.0 % (4 / 4) 50.0 % (1 / 2)
set_stack_entry_domain CBC 338758 100.0 % (4 / 4) 100.0 % (2 / 2)
set_stack_entry_location CBC 338758 91.7 % (11 / 12) 66.7 % (4 / 6)
should_output_to_client CBC 51317792 100.0 % (6 / 6) 100.0 % (10 / 10)
should_output_to_server GNC 51318859 100.0 % (2 / 2)
unpack_sql_state CBC 59637 100.0 % (6 / 6) 100.0 % (2 / 2)
vwrite_stderr UBC 0 0.0 % (0 / 5)
write_console CBC 319020 100.0 % (3 / 3)
write_pipe_chunks CBC 60 78.3 % (18 / 23) 70.0 % (7 / 10)
write_syslog UBC 0 0.0 % (0 / 43) 0.0 % (0 / 32)

Generated by: LCOV version 2.5.0-beta