LCOV - differential code coverage report
Current view: top level - src/backend/utils/error - elog.c (source / functions) Coverage Total Hit UNC UIC UBC CBC DUB
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 67.4 % 1260 849 5 1 405 849 5
Current Date: 2025-09-06 07:49:51 +0900 Functions: 93.7 % 79 74 1 4 74
Baseline: lcov-20250908-010021-baseline Branches: 48.1 % 901 433 4 464 433
Baseline Date: 2025-09-05 08:21:35 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 31.6 % 38 12 5 21 12
(360..) days: 68.5 % 1222 837 1 384 837
Function coverage date bins:
(30,360] days: 100.0 % 1 1 1
(360..) days: 93.6 % 78 73 1 4 73
Branch coverage date bins:
(30,360] days: 18.2 % 22 4 4 14 4
(360..) days: 48.8 % 879 429 450 429

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 CBC 3201 95.2 % (40 / 42) 70.0 % (28 / 40)
DebugFileOpen CBC 18821 25.0 % (3 / 12) 5.6 % (1 / 18)
EmitErrorReport CBC 215133 93.8 % (15 / 16) 66.7 % (8 / 12)
FlushErrorState CBC 24950 100.0 % (5 / 5)
FreeErrorData CBC 71 100.0 % (4 / 4)
FreeErrorDataContents CBC 193330 96.2 % (25 / 26) 91.7 % (22 / 24)
GetErrorContextStack CBC 24 100.0 % (11 / 11) 100.0 % (2 / 2)
ReThrowError CBC 32 81.8 % (27 / 33) 69.2 % (18 / 26)
ThrowErrorData CBC 9 70.3 % (26 / 37) 53.6 % (15 / 28)
append_with_tabs CBC 254067 100.0 % (6 / 6) 100.0 % (8 / 8)
assign_backtrace_functions CBC 1067 100.0 % (3 / 3)
assign_log_destination CBC 1068 100.0 % (3 / 3)
assign_syslog_facility CBC 1067 42.9 % (3 / 7) 25.0 % (1 / 4)
assign_syslog_ident CBC 1067 75.0 % (6 / 8) 33.3 % (2 / 6)
check_backtrace_functions CBC 1067 30.4 % (7 / 23) 12.5 % (2 / 16)
check_log_destination CBC 1068 63.3 % (19 / 30) 66.7 % (12 / 18)
check_log_of_query CBC 204956 100.0 % (8 / 8) 100.0 % (6 / 6)
err_generic_string CBC 6242 90.9 % (20 / 22) 50.0 % (6 / 12)
err_gettext CBC 297155 100.0 % (4 / 4) 100.0 % (2 / 2)
err_sendstring CBC 265827 80.0 % (4 / 5) 50.0 % (1 / 2)
errbacktrace UBC 0 0.0 % (0 / 9) 0.0 % (0 / 4)
errcode CBC 28047 100.0 % (5 / 5) 25.0 % (1 / 4)
errcode_for_file_access CBC 62 40.0 % (14 / 35) 28.6 % (4 / 14)
errcode_for_socket_access CBC 26 72.7 % (8 / 11) 33.3 % (2 / 6)
errcontext_msg CBC 20922 100.0 % (9 / 9) 66.7 % (8 / 12)
errdetail CBC 13883 100.0 % (9 / 9) 50.0 % (5 / 10)
errdetail_internal CBC 1577 100.0 % (9 / 9) 50.0 % (4 / 8)
errdetail_log CBC 643 100.0 % (9 / 9) 50.0 % (5 / 10)
errdetail_log_plural CBC 18 100.0 % (9 / 9) 33.3 % (4 / 12)
errdetail_plural CBC 30 100.0 % (9 / 9) 33.3 % (4 / 12)
errfinish CBC 218301 92.3 % (36 / 39) 71.4 % (20 / 28)
errhidecontext CBC 12752 100.0 % (5 / 5) 25.0 % (1 / 4)
errhidestmt CBC 146492 100.0 % (5 / 5) 25.0 % (1 / 4)
errhint CBC 2740 100.0 % (9 / 9) 40.0 % (4 / 10)
errhint_internal CBC 53 100.0 % (9 / 9) 37.5 % (3 / 8)
errhint_plural CBC 6 100.0 % (9 / 9) 33.3 % (4 / 12)
errmsg CBC 185717 100.0 % (10 / 10) 60.0 % (6 / 10)
errmsg_internal CBC 32409 100.0 % (10 / 10) 50.0 % (4 / 8)
errmsg_plural CBC 566 100.0 % (10 / 10) 33.3 % (4 / 12)
error_severity CBC 238976 80.0 % (24 / 30) 77.8 % (7 / 9)
errposition CBC 5885 100.0 % (5 / 5) 25.0 % (1 / 4)
errsave_finish CBC 3727 93.3 % (14 / 15) 50.0 % (3 / 6)
errsave_start CBC 26160 100.0 % (15 / 15) 83.3 % (5 / 6)
errstart CBC 43369842 80.6 % (29 / 36) 78.1 % (25 / 32)
errstart_cold CBC 21468 100.0 % (2 / 2)
format_elog_string CBC 30 100.0 % (10 / 10) 55.6 % (10 / 18)
get_backend_type_for_log CBC 254021 100.0 % (7 / 7) 100.0 % (4 / 4)
get_error_stack_entry CBC 218757 77.8 % (7 / 9) 25.0 % (1 / 4)
get_formatted_log_time CBC 254198 100.0 % (12 / 12) 100.0 % (4 / 4)
get_formatted_start_time CBC 40 100.0 % (7 / 7) 100.0 % (2 / 2)
geterrcode CBC 3015 100.0 % (4 / 4) 25.0 % (1 / 4)
geterrposition CBC 7510 100.0 % (4 / 4) 25.0 % (1 / 4)
getinternalerrposition CBC 130 100.0 % (4 / 4) 25.0 % (1 / 4)
in_error_recursion_trouble CBC 787596 100.0 % (2 / 2)
internalerrposition CBC 261 100.0 % (5 / 5) 25.0 % (1 / 4)
internalerrquery CBC 252 100.0 % (9 / 9) 62.5 % (5 / 8)
is_log_level_output CBC 44459629 75.0 % (9 / 12) 68.8 % (11 / 16)
log_line_prefix CBC 254158 100.0 % (3 / 3)
log_status_format CBC 254158 22.7 % (45 / 198) 16.9 % (25 / 148)
matches_backtrace_functions CBC 218301 30.0 % (3 / 10) 10.0 % (1 / 10)
message_level_is_interesting CBC 884832 100.0 % (6 / 6) 83.3 % (5 / 6)
pg_re_throw CBC 55065 25.0 % (3 / 12) 16.7 % (1 / 6)
pre_format_elog_string CBC 30 100.0 % (4 / 4)
process_log_prefix_padding UBC 0 0.0 % (0 / 15) 0.0 % (0 / 10)
reset_formatted_start_time CBC 14114 100.0 % (3 / 3)
send_message_to_frontend CBC 34020 87.8 % (65 / 74) 72.5 % (29 / 40)
send_message_to_server_log CBC 204916 68.8 % (66 / 96) 65.2 % (43 / 66)
set_backtrace UNC 0 0.0 % (0 / 11) 0.0 % (0 / 4)
set_errcontext_domain CBC 20922 100.0 % (5 / 5) 50.0 % (3 / 6)
set_errdata_field CBC 6242 100.0 % (4 / 4) 50.0 % (1 / 2)
set_stack_entry_domain CBC 218701 100.0 % (4 / 4) 100.0 % (2 / 2)
set_stack_entry_location CBC 218701 91.7 % (11 / 12) 66.7 % (4 / 6)
should_output_to_client CBC 44253666 100.0 % (6 / 6) 100.0 % (10 / 10)
should_output_to_server CBC 44254674 100.0 % (2 / 2)
unpack_sql_state CBC 43401 100.0 % (6 / 6) 100.0 % (2 / 2)
write_console CBC 204896 100.0 % (3 / 3)
write_pipe_chunks CBC 60 78.3 % (18 / 23) 70.0 % (7 / 10)
write_stderr UBC 0 0.0 % (0 / 7)
write_syslog UBC 0 0.0 % (0 / 43) 0.0 % (0 / 32)

Generated by: LCOV version 2.4-beta