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: 0e5ff9b9b45a657aea12440478dc002e9b01f138 vs 0123ce131fca454009439dfa3b2266d1d40737d7 Lines: 69.9 % 1367 955 18 1 1 392 1 98 856 1 6 5
Current Date: 2026-03-14 14:10:32 -0400 Functions: 91.7 % 84 77 2 5 8 69
Baseline: lcov-20260315-024220-baseline Branches: 51.5 % 969 499 14 1 455 2 58 439 4
Baseline Date: 2026-03-14 15:27:56 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 16.7 % 6 1 5 1 1
(30,360] days: 74.0 % 146 108 13 25 97 11
(360..) days: 69.6 % 1215 846 1 1 367 1 845
Function coverage date bins:
(7,30] days: 0.0 % 1 0 1
(30,360] days: 80.0 % 5 4 1 3 1
(360..) days: 93.6 % 78 73 1 4 5 68
Branch coverage date bins:
(30,360] days: 68.9 % 90 62 14 14 58 4
(360..) days: 49.7 % 879 437 1 441 2 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
log_status_format CBC 282801 22.7 % (45 / 198) 16.9 % (25 / 148)
write_syslog UBC 0 0.0 % (0 / 43) 0.0 % (0 / 32)
send_message_to_server_log CBC 229816 68.8 % (66 / 96) 65.2 % (43 / 66)
check_backtrace_functions CBC 1184 30.4 % (7 / 23) 12.5 % (2 / 16)
errcode_for_file_access GNC 88 57.1 % (20 / 35) 42.9 % (6 / 14)
process_log_prefix_padding UBC 0 0.0 % (0 / 15) 0.0 % (0 / 10)
check_log_destination CBC 1185 63.3 % (19 / 30) 66.7 % (12 / 18)
set_backtrace UNC 0 0.0 % (0 / 11) 0.0 % (0 / 4)
ThrowErrorData CBC 39 73.0 % (27 / 37) 57.1 % (16 / 28)
DebugFileOpen CBC 21637 25.0 % (3 / 12) 5.6 % (1 / 18)
errbacktrace UBC 0 0.0 % (0 / 9) 0.0 % (0 / 4)
pg_re_throw CBC 57561 25.0 % (3 / 12) 16.7 % (1 / 6)
check_log_min_messages GNC 1683 90.7 % (78 / 86) 85.7 % (48 / 56)
errstart CBC 45863819 80.6 % (29 / 36) 78.1 % (25 / 32)
matches_backtrace_functions CBC 244153 30.0 % (3 / 10) 10.0 % (1 / 10)
ReThrowError CBC 32 81.8 % (27 / 33) 69.2 % (18 / 26)
error_severity CBC 266147 80.0 % (24 / 30) 77.8 % (7 / 9)
vwrite_stderr UBC 0 0.0 % (0 / 5)
write_pipe_chunks CBC 60 78.3 % (18 / 23) 70.0 % (7 / 10)
write_stderr UBC 0 0.0 % (0 / 5)
assign_syslog_facility CBC 1184 42.9 % (3 / 7) 25.0 % (1 / 4)
errcode_for_socket_access CBC 34 72.7 % (8 / 11) 33.3 % (2 / 6)
errfinish GNC 244153 92.7 % (38 / 41) 71.9 % (23 / 32)
is_log_level_output CBC 46982157 75.0 % (9 / 12) 68.8 % (11 / 16)
CopyErrorData GNC 3207 95.2 % (40 / 42) 70.0 % (28 / 40)
FreeErrorDataContents CBC 113 92.3 % (24 / 26) 87.5 % (21 / 24)
assign_syslog_ident CBC 1184 75.0 % (6 / 8) 33.3 % (2 / 6)
backtrace_cleanup UNC 0 0.0 % (0 / 2)
err_generic_string CBC 6543 90.9 % (20 / 22) 50.0 % (6 / 12)
get_error_stack_entry CBC 244882 77.8 % (7 / 9) 25.0 % (1 / 4)
send_message_to_frontend CBC 36291 97.3 % (72 / 74) 85.0 % (34 / 40)
EmitErrorReport CBC 240980 93.8 % (15 / 16) 66.7 % (8 / 12)
err_sendstring CBC 284139 80.0 % (4 / 5) 50.0 % (1 / 2)
errsave_finish CBC 4319 93.3 % (14 / 15) 50.0 % (3 / 6)
get_backend_type_for_log GNC 282660 88.9 % (8 / 9) 83.3 % (5 / 6)
set_stack_entry_location CBC 244826 91.7 % (11 / 12) 66.7 % (4 / 6)
FlushErrorState CBC 26097 100.0 % (5 / 5)
FreeErrorData CBC 71 100.0 % (4 / 4)
GetErrorContextStack CBC 24 100.0 % (11 / 11) 100.0 % (2 / 2)
append_with_tabs CBC 282643 100.0 % (6 / 6) 100.0 % (8 / 8)
assign_backtrace_functions CBC 1184 100.0 % (3 / 3)
assign_log_destination CBC 1185 100.0 % (3 / 3)
assign_log_min_messages GNC 1682 100.0 % (4 / 4) 100.0 % (2 / 2)
check_log_of_query CBC 229856 100.0 % (8 / 8) 100.0 % (6 / 6)
err_gettext CBC 328907 100.0 % (4 / 4) 100.0 % (2 / 2)
errcode CBC 29469 100.0 % (5 / 5) 25.0 % (1 / 4)
errcontext_msg CBC 23584 100.0 % (9 / 9) 66.7 % (8 / 12)
errdetail CBC 15084 100.0 % (9 / 9) 50.0 % (5 / 10)
errdetail_internal CBC 1686 100.0 % (9 / 9) 50.0 % (4 / 8)
errdetail_log CBC 679 100.0 % (9 / 9) 50.0 % (5 / 10)
errdetail_log_plural CBC 268 100.0 % (9 / 9) 33.3 % (4 / 12)
errdetail_plural CBC 31 100.0 % (9 / 9) 33.3 % (4 / 12)
errhidecontext CBC 15546 100.0 % (5 / 5) 25.0 % (1 / 4)
errhidestmt CBC 161288 100.0 % (5 / 5) 25.0 % (1 / 4)
errhint CBC 2670 100.0 % (9 / 9) 40.0 % (4 / 10)
errhint_internal CBC 52 100.0 % (9 / 9) 37.5 % (3 / 8)
errhint_plural CBC 6 100.0 % (9 / 9) 33.3 % (4 / 12)
errmsg CBC 205796 100.0 % (10 / 10) 70.0 % (7 / 10)
errmsg_internal CBC 38385 100.0 % (10 / 10) 50.0 % (4 / 8)
errmsg_plural CBC 609 100.0 % (10 / 10) 33.3 % (4 / 12)
errposition CBC 6447 100.0 % (5 / 5) 25.0 % (1 / 4)
errsave_start CBC 27056 100.0 % (15 / 15) 83.3 % (5 / 6)
errstart_cold CBC 22320 100.0 % (2 / 2)
format_elog_string CBC 75 100.0 % (10 / 10) 55.6 % (10 / 18)
get_formatted_log_time CBC 282841 100.0 % (12 / 12) 100.0 % (4 / 4)
get_formatted_start_time CBC 40 100.0 % (7 / 7) 100.0 % (2 / 2)
geterrcode CBC 3360 100.0 % (4 / 4) 25.0 % (1 / 4)
geterrposition CBC 7623 100.0 % (4 / 4) 25.0 % (1 / 4)
getinternalerrposition CBC 124 100.0 % (4 / 4) 25.0 % (1 / 4)
in_error_recursion_trouble CBC 861907 100.0 % (2 / 2)
internalerrposition CBC 243 100.0 % (5 / 5) 25.0 % (1 / 4)
internalerrquery CBC 237 100.0 % (9 / 9) 62.5 % (5 / 8)
log_line_prefix CBC 282801 100.0 % (3 / 3)
log_min_messages_cmp GNC 36 100.0 % (8 / 8) 100.0 % (4 / 4)
message_level_is_interesting CBC 888483 100.0 % (6 / 6) 83.3 % (5 / 6)
pre_format_elog_string CBC 75 100.0 % (4 / 4)
reset_formatted_start_time CBC 16311 100.0 % (3 / 3)
set_errcontext_domain CBC 23584 100.0 % (5 / 5) 50.0 % (3 / 6)
set_errdata_field CBC 6543 100.0 % (4 / 4) 50.0 % (1 / 2)
set_stack_entry_domain CBC 244826 100.0 % (4 / 4) 100.0 % (2 / 2)
should_output_to_client CBC 46751253 100.0 % (6 / 6) 100.0 % (10 / 10)
should_output_to_server GNC 46752302 100.0 % (2 / 2)
unpack_sql_state CBC 45986 100.0 % (6 / 6) 100.0 % (2 / 2)
write_console CBC 229796 100.0 % (3 / 3)

Generated by: LCOV version 2.4-beta