LCOV - differential code coverage report
Current view: top level - contrib/postgres_fdw - postgres_fdw.c (source / functions) Coverage Total Hit LBC UBC GBC CBC
Current: 77aeca80249c9e640c811e80633a2e334a9320de vs 38afc3dcb25c45b744d4025029ce0a6c90b7059f Lines: 93.6 % 2627 2459 2 166 2 2457
Current Date: 2026-07-25 19:08:27 +0900 Functions: 100.0 % 105 105 105
Baseline: lcov-20260725-baseline Branches: 75.5 % 1885 1424 3 458 1 1423
Baseline Date: 2026-07-25 19:09:19 +0900 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 100.0 % 1 1 1
(7,30] days: 94.1 % 101 95 6 95
(30,360] days: 92.4 % 224 207 17 207
(360..) days: 93.7 % 2301 2156 2 143 2 2154
Function coverage date bins:
(7,30] days: 100.0 % 7 7 7
(30,360] days: 100.0 % 9 9 9
(360..) days: 100.0 % 89 89 89
Branch coverage date bins:
(7,30] days: 65.6 % 32 21 11 21
(30,360] days: 67.1 % 158 106 52 106
(360..) days: 76.5 % 1695 1297 3 395 1 1296

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_magic_func CBC 37 100.0 % (1 / 1)
add_foreign_final_paths CBC 550 92.2 % (59 / 64) 56.5 % (35 / 62)
add_foreign_grouping_paths CBC 162 96.2 % (25 / 26) 64.3 % (9 / 14)
add_foreign_ordered_paths CBC 154 94.4 % (34 / 36) 73.1 % (19 / 26)
add_paths_with_pathkeys_for_rel CBC 1567 100.0 % (28 / 28) 96.4 % (27 / 28)
adjust_foreign_grouping_path_cost CBC 30 100.0 % (12 / 12) 75.0 % (3 / 4)
analyze_row_processor CBC 22744 55.6 % (10 / 18) 16.7 % (2 / 12)
apply_returning_filter CBC 16 70.4 % (19 / 27) 62.5 % (5 / 8)
apply_server_options CBC 1231 94.1 % (16 / 17) 88.9 % (16 / 18)
apply_table_options CBC 1231 80.0 % (8 / 10) 75.0 % (9 / 12)
attname_in_list CBC 23 100.0 % (8 / 8) 90.0 % (9 / 10)
build_remattrmap CBC 8 97.1 % (34 / 35) 83.3 % (15 / 18)
build_remote_returning CBC 4 100.0 % (36 / 36) 80.6 % (29 / 36)
close_cursor CBC 522 100.0 % (7 / 7) 100.0 % (2 / 2)
complete_pending_request CBC 3 77.8 % (7 / 9) 25.0 % (2 / 8)
conversion_error_callback CBC 5 91.3 % (42 / 46) 68.8 % (22 / 32)
convert_prep_stmt_params CBC 1053 100.0 % (29 / 29) 80.8 % (21 / 26)
create_cursor CBC 857 100.0 % (28 / 28) 100.0 % (8 / 8)
create_foreign_modify CBC 183 97.9 % (47 / 48) 81.2 % (26 / 32)
deallocate_query CBC 172 90.0 % (9 / 10) 75.0 % (3 / 4)
ec_member_matches_foreign CBC 310 88.9 % (8 / 9) 75.0 % (3 / 4)
estimate_path_cost_size CBC 2763 100.0 % (164 / 164) 82.1 % (87 / 106)
execute_dml_stmt CBC 72 95.2 % (20 / 21) 91.7 % (11 / 12)
execute_foreign_modify CBC 1053 95.2 % (40 / 42) 84.2 % (32 / 38)
fetch_attstats CBC 8 78.3 % (18 / 23) 41.7 % (5 / 12)
fetch_more_data CBC 1525 96.7 % (29 / 30) 78.6 % (11 / 14)
fetch_more_data_begin CBC 160 90.9 % (10 / 11) 66.7 % (4 / 6)
fetch_relstats CBC 11 77.8 % (7 / 9) 37.5 % (3 / 8)
fetch_remote_statistics CBC 11 97.8 % (45 / 46) 70.0 % (21 / 30)
find_em_for_rel CBC 1827 100.0 % (10 / 10) 100.0 % (10 / 10)
find_em_for_rel_target CBC 255 88.9 % (24 / 27) 67.6 % (23 / 34)
find_modifytable_subplan CBC 137 100.0 % (17 / 17) 75.0 % (12 / 16)
finish_foreign_modify CBC 161 100.0 % (6 / 6) 50.0 % (1 / 2)
foreign_grouping_ok CBC 162 100.0 % (61 / 61) 89.1 % (57 / 64)
foreign_join_ok CBC 397 89.8 % (106 / 118) 77.5 % (79 / 102)
free_remattrmap CBC 11 100.0 % (9 / 9) 75.0 % (6 / 8)
get_batch_size_option CBC 146 100.0 % (14 / 14) 87.5 % (7 / 8)
get_opt_value CBC 157 100.0 % (4 / 4) 100.0 % (2 / 2)
get_remote_estimate CBC 1319 76.9 % (10 / 13) 30.0 % (3 / 10)
get_returning_data CBC 366 100.0 % (21 / 21) 90.0 % (9 / 10)
get_tupdesc_for_join_scan_tuples CBC 164 84.2 % (16 / 19) 64.3 % (9 / 14)
get_useful_ecs_for_relation CBC 538 100.0 % (25 / 25) 84.4 % (27 / 32)
get_useful_pathkeys_for_relation CBC 1567 97.1 % (33 / 34) 92.9 % (26 / 28)
import_fetched_statistics CBC 7 93.1 % (54 / 58) 50.0 % (15 / 30)
init_returning_filter CBC 1 82.6 % (19 / 23) 66.7 % (12 / 18)
make_tuple_from_result_row CBC 94542 98.0 % (48 / 49) 73.3 % (22 / 30)
match_attrmap CBC 8 85.7 % (24 / 28) 57.1 % (16 / 28)
merge_fdw_options CBC 801 100.0 % (16 / 16) 81.2 % (13 / 16)
pg_finfo_postgres_fdw_handler CBC 19 100.0 % (1 / 1)
postgresAcquireSampleRowsFunc CBC 52 73.8 % (76 / 103) 55.4 % (51 / 92)
postgresAddForeignUpdateTargets CBC 195 100.0 % (4 / 4)
postgresAnalyzeForeignTable CBC 52 87.5 % (14 / 16) 37.5 % (3 / 8)
postgresBeginDirectModify CBC 106 100.0 % (35 / 35) 93.8 % (15 / 16)
postgresBeginForeignInsert CBC 64 90.7 % (39 / 43) 68.4 % (26 / 38)
postgresBeginForeignModify CBC 172 100.0 % (12 / 12) 100.0 % (2 / 2)
postgresBeginForeignScan CBC 932 100.0 % (33 / 33) 100.0 % (10 / 10)
postgresEndDirectModify CBC 98 100.0 % (7 / 7) 100.0 % (2 / 2)
postgresEndForeignInsert CBC 50 85.7 % (6 / 7) 50.0 % (2 / 4)
postgresEndForeignModify CBC 158 100.0 % (5 / 5) 100.0 % (2 / 2)
postgresEndForeignScan CBC 892 100.0 % (8 / 8) 100.0 % (4 / 4)
postgresExecForeignBatchInsert CBC 42 75.0 % (6 / 8) 50.0 % (2 / 4)
postgresExecForeignDelete CBC 23 100.0 % (4 / 4) 50.0 % (1 / 2)
postgresExecForeignInsert CBC 892 77.8 % (7 / 9) 66.7 % (4 / 6)
postgresExecForeignTruncate CBC 15 100.0 % (34 / 34) 81.2 % (26 / 32)
postgresExecForeignUpdate CBC 96 100.0 % (4 / 4) 100.0 % (2 / 2)
postgresExplainDirectModify CBC 33 100.0 % (6 / 6) 50.0 % (1 / 2)
postgresExplainForeignModify CBC 47 100.0 % (7 / 7) 75.0 % (3 / 4)
postgresExplainForeignScan CBC 403 97.4 % (38 / 39) 87.5 % (21 / 24)
postgresForeignAsyncConfigureWait CBC 226 96.3 % (26 / 27) 75.0 % (18 / 24)
postgresForeignAsyncNotify CBC 151 92.3 % (12 / 13) 60.0 % (6 / 10)
postgresForeignAsyncRequest CBC 6175 100.0 % (3 / 3)
postgresGetAnalyzeInfoForForeignTable CBC 46 85.0 % (17 / 20) 28.6 % (4 / 14)
postgresGetForeignJoinPaths CBC 1362 94.4 % (34 / 36) 85.0 % (17 / 20)
postgresGetForeignModifyBatchSize CBC 146 100.0 % (18 / 18) 84.6 % (22 / 26)
postgresGetForeignPaths CBC 1229 94.1 % (48 / 51) 83.3 % (35 / 42)
postgresGetForeignPlan CBC 1042 100.0 % (52 / 52) 88.0 % (44 / 50)
postgresGetForeignRelSize CBC 1231 100.0 % (47 / 47) 100.0 % (14 / 14)
postgresGetForeignUpperPaths CBC 1005 92.0 % (23 / 25) 77.8 % (14 / 18)
postgresImportForeignSchema CBC 10 95.7 % (110 / 115) 84.0 % (79 / 94)
postgresImportForeignStatistics CBC 44 95.1 % (39 / 41) 83.3 % (25 / 30)
postgresIsForeignPathAsyncCapable CBC 239 100.0 % (4 / 4)
postgresIsForeignRelUpdatable CBC 342 84.6 % (11 / 13) 72.2 % (13 / 18)
postgresIterateDirectModify CBC 420 93.8 % (15 / 16) 70.0 % (7 / 10)
postgresIterateForeignScan CBC 70938 100.0 % (14 / 14) 100.0 % (10 / 10)
postgresPlanDirectModify CBC 201 94.8 % (55 / 58) 76.5 % (39 / 51)
postgresPlanForeignModify CBC 171 92.3 % (48 / 52) 73.7 % (28 / 38)
postgresReScanForeignScan CBC 407 92.6 % (25 / 27) 87.5 % (14 / 16)
postgresRecheckForeignScan CBC 5 100.0 % (11 / 11) 75.0 % (6 / 8)
postgres_fdw_handler CBC 717 100.0 % (40 / 40)
prepare_foreign_modify CBC 188 83.3 % (10 / 12) 50.0 % (2 / 4)
prepare_query_params CBC 25 100.0 % (12 / 12) 75.0 % (6 / 8)
process_pending_request CBC 9 72.7 % (8 / 11) 50.0 % (3 / 6)
process_query_params CBC 352 91.7 % (11 / 12) 75.0 % (6 / 8)
produce_tuple_asynchronously CBC 6329 91.7 % (22 / 24) 72.7 % (16 / 22)
rebuild_fdw_scan_tlist CBC 2 100.0 % (12 / 12) 87.5 % (7 / 8)
remattrmap_cmp CBC 12 100.0 % (4 / 4)
reset_transmission_modes CBC 4273 100.0 % (3 / 3)
semijoin_target_ok CBC 64 92.3 % (12 / 13) 71.4 % (10 / 14)
set_float_arg CBC 51 100.0 % (8 / 8) 100.0 % (2 / 2)
set_floatarr_arg CBC 33 100.0 % (9 / 9) 100.0 % (2 / 2)
set_int32_arg CBC 11 75.0 % (6 / 8) 50.0 % (1 / 2)
set_text_arg CBC 55 100.0 % (7 / 7) 100.0 % (2 / 2)
set_transmission_modes CBC 4273 100.0 % (10 / 10) 100.0 % (6 / 6)
set_uint32_arg CBC 7 75.0 % (6 / 8) 50.0 % (1 / 2)
store_returning_result CBC 108 100.0 % (4 / 4)

Generated by: LCOV version 2.0-1