LCOV - differential code coverage report
Current view: top level - src/backend/utils/adt - numeric.c (source / functions) Coverage Total Hit UIC GIC
Current: 603a3335f2b60b2c798da5c627b3bb288b92a7bd vs e395fbd32a07557de4ac98088928c1749d4845d8 Lines: 94.5 % 4033 3810 223 3810
Current Date: 2026-07-25 17:13:00 -0400 Functions: 99.1 % 212 210 2 210
Baseline: lcov-20260726-baseline Branches: 78.1 % 2533 1979 554 1979
Baseline Date: 2026-07-25 19:16:42 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 100.0 % 8 8 8
(30,360] days: 91.4 % 152 139 13 139
(360..) days: 94.6 % 3873 3663 210 3663
Function coverage date bins:
(7,30] days: 100.0 % 1 1 1
(30,360] days: 100.0 % 13 13 13
(360..) days: 99.0 % 198 196 2 196
Branch coverage date bins:
(7,30] days: 100.0 % 12 12 12
(30,360] days: 59.5 % 126 75 51 75
(360..) days: 79.0 % 2395 1892 503 1892

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
numeric_abbrev_abort GIC 96 23.5 % (4 / 17) 4.5 % (1 / 22)
div_var GIC 380367 93.0 % (160 / 172) 85.7 % (84 / 98)
div_mod_var GIC 3295 56.5 % (13 / 23) 30.0 % (3 / 10)
numeric_recv GIC 51 67.7 % (21 / 31) 25.0 % (7 / 28)
power_var_int GIC 848 86.5 % (64 / 74) 66.7 % (26 / 39)
set_var_from_non_decimal_integer_str GIC 104 87.5 % (70 / 80) 77.6 % (45 / 58)
int8_sum UIC 0 0.0 % (0 / 9) 0.0 % (0 / 6)
set_var_from_str GIC 117574 92.4 % (85 / 92) 89.1 % (49 / 55)
numeric GIC 8077 81.2 % (26 / 32) 56.8 % (25 / 44)
numeric_float8_no_overflow GIC 17 54.5 % (6 / 11) 16.7 % (1 / 6)
numeric_normalize GIC 23994 70.6 % (12 / 17) 50.0 % (6 / 12)
numeric_uminus GIC 631 70.6 % (12 / 17) 40.0 % (8 / 20)
hash_numeric GIC 410122 83.3 % (20 / 24) 59.4 % (19 / 32)
hash_numeric_extended GIC 56 84.6 % (22 / 26) 56.2 % (18 / 32)
numeric_avg_combine GIC 16 87.9 % (29 / 33) 55.6 % (10 / 18)
numeric_combine GIC 24 88.6 % (31 / 35) 55.6 % (10 / 18)
numeric_mul_safe GIC 326791 91.8 % (45 / 49) 85.3 % (29 / 34)
sqrt_var GIC 3048 97.4 % (152 / 156) 87.8 % (65 / 74)
do_numeric_discard GIC 228 90.6 % (29 / 32) 76.9 % (20 / 26)
int4_avg_combine GIC 6903 81.2 % (13 / 16) 35.0 % (7 / 20)
int64_div_fast_to_numeric GIC 15151 86.4 % (19 / 22) 66.7 % (4 / 6)
numeric_in GIC 103158 95.4 % (62 / 65) 91.7 % (44 / 48)
numeric_uplus UIC 0 0.0 % (0 / 3)
accum_sum_final GIC 115058 90.5 % (19 / 21) 62.5 % (5 / 8)
cmp_abs_common GIC 18752901 92.0 % (23 / 25) 93.3 % (28 / 30)
generate_series_numeric_support GIC 535 95.9 % (47 / 49) 90.5 % (38 / 42)
int2_avg_accum GIC 28 83.3 % (10 / 12) 40.0 % (4 / 10)
int2_avg_accum_inv GIC 8 83.3 % (10 / 12) 40.0 % (4 / 10)
int2_sum GIC 16 81.8 % (9 / 11) 66.7 % (4 / 6)
int4_avg_accum GIC 1744070 83.3 % (10 / 12) 40.0 % (4 / 10)
int4_avg_accum_inv GIC 1000 83.3 % (10 / 12) 40.0 % (4 / 10)
int8_accum_inv GIC 108 75.0 % (6 / 8) 41.7 % (5 / 12)
int8_avg_combine GIC 26 88.9 % (16 / 18) 57.1 % (8 / 14)
numeric_abbrev_convert_var GIC 12679 92.0 % (23 / 25) 78.6 % (11 / 14)
numeric_div_safe GIC 99036 94.9 % (37 / 39) 90.0 % (27 / 30)
numeric_div_trunc GIC 822 94.4 % (34 / 36) 85.7 % (24 / 28)
numeric_float4 GIC 1718 85.7 % (12 / 14) 87.5 % (7 / 8)
numeric_float8 GIC 347617 84.6 % (11 / 13) 87.5 % (7 / 8)
numeric_poly_combine GIC 16 90.0 % (18 / 20) 57.1 % (8 / 14)
numeric_stddev_internal GIC 654 94.4 % (34 / 36) 90.0 % (18 / 20)
numericvar_to_uint64 GIC 100 92.9 % (26 / 28) 75.0 % (12 / 16)
add_abs GIC 299642 97.5 % (39 / 40) 88.9 % (16 / 18)
apply_typmod GIC 104989 96.0 % (24 / 25) 95.8 % (23 / 24)
div_var_int GIC 389765 97.6 % (41 / 42) 89.3 % (25 / 28)
div_var_int64 GIC 360 97.6 % (41 / 42) 89.3 % (25 / 28)
exp_var GIC 139 97.5 % (39 / 40) 78.6 % (11 / 14)
float4_numeric GIC 15093 93.3 % (14 / 15) 87.5 % (7 / 8)
float8_numeric GIC 654 93.3 % (14 / 15) 87.5 % (7 / 8)
get_min_scale GIC 267 93.3 % (14 / 15) 90.0 % (9 / 10)
get_str_from_var_sci GIC 152 94.1 % (16 / 17) 75.0 % (3 / 4)
in_range_numeric_numeric GIC 768 98.1 % (53 / 54) 79.3 % (46 / 58)
int2_accum_inv GIC 108 85.7 % (6 / 7) 50.0 % (4 / 8)
int2int4_sum GIC 2716 88.9 % (8 / 9) 50.0 % (5 / 10)
int4_accum_inv GIC 108 85.7 % (6 / 7) 50.0 % (4 / 8)
int8_avg GIC 6817 90.9 % (10 / 11) 50.0 % (5 / 10)
int8_avg_accum_inv GIC 24 85.7 % (6 / 7) 50.0 % (4 / 8)
int8_avg_deserialize GIC 26 90.9 % (10 / 11) 25.0 % (1 / 4)
int8_avg_serialize GIC 26 88.9 % (8 / 9) 25.0 % (1 / 4)
ln_var GIC 607 97.7 % (43 / 44) 81.2 % (13 / 16)
makeInt128AggState GIC 628 87.5 % (7 / 8) 25.0 % (1 / 4)
makeNumericAggState GIC 114082 88.9 % (8 / 9) 25.0 % (1 / 4)
make_result_safe GIC 2525482 97.6 % (41 / 42) 87.5 % (42 / 48)
numeric_abbrev_convert GIC 12779 95.7 % (22 / 23) 83.3 % (10 / 12)
numeric_accum_inv GIC 152 87.5 % (7 / 8) 60.0 % (6 / 10)
numeric_avg_deserialize GIC 16 94.7 % (18 / 19) 25.0 % (1 / 4)
numeric_avg_serialize GIC 16 94.1 % (16 / 17) 25.0 % (1 / 4)
numeric_deserialize GIC 24 95.2 % (20 / 21) 25.0 % (1 / 4)
numeric_int2 GIC 73 92.3 % (12 / 13) 66.7 % (12 / 18)
numeric_int4 GIC 3720 83.3 % (5 / 6) 30.0 % (3 / 10)
numeric_int8 GIC 347 83.3 % (5 / 6) 30.0 % (3 / 10)
numeric_is_integral GIC 54 85.7 % (6 / 7) 87.5 % (7 / 8)
numeric_maximum_size GIC 4892 83.3 % (5 / 6) 50.0 % (1 / 2)
numeric_mul GIC 326759 85.7 % (6 / 7) 30.0 % (3 / 10)
numeric_pg_lsn GIC 104 90.0 % (9 / 10) 58.3 % (7 / 12)
numeric_poly_deserialize GIC 16 91.7 % (11 / 12) 25.0 % (1 / 4)
numeric_poly_serialize GIC 16 90.0 % (9 / 10) 25.0 % (1 / 4)
numeric_poly_stddev_pop GIC 48 83.3 % (5 / 6) 50.0 % (2 / 4)
numeric_poly_var_pop GIC 40 83.3 % (5 / 6) 50.0 % (2 / 4)
numeric_serialize GIC 24 94.7 % (18 / 19) 25.0 % (1 / 4)
numeric_sign GIC 32 91.7 % (11 / 12) 83.3 % (5 / 6)
numeric_stddev_pop GIC 64 83.3 % (5 / 6) 50.0 % (2 / 4)
numeric_var_pop GIC 76 83.3 % (5 / 6) 50.0 % (2 / 4)
numerictypmodout GIC 209 85.7 % (6 / 7) 50.0 % (1 / 2)
numericvar_to_double_no_overflow GIC 360 85.7 % (6 / 7) 25.0 % (1 / 4)
power_var GIC 968 98.1 % (53 / 54) 77.8 % (28 / 36)
sub_abs GIC 436114 97.5 % (39 / 40) 83.3 % (15 / 18)
width_bucket_numeric GIC 529 97.3 % (36 / 37) 73.7 % (28 / 38)
accum_sum_add GIC 1570448 100.0 % (15 / 15) 100.0 % (6 / 6)
accum_sum_carry GIC 115162 100.0 % (29 / 29) 88.9 % (16 / 18)
accum_sum_combine GIC 36 100.0 % (6 / 6)
accum_sum_copy GIC 28 100.0 % (10 / 10)
accum_sum_rescale GIC 1570448 100.0 % (33 / 33) 83.3 % (15 / 18)
accum_sum_reset GIC 12 100.0 % (6 / 6) 100.0 % (2 / 2)
add_var GIC 414502 100.0 % (35 / 35) 85.7 % (12 / 14)
alloc_var GIC 1443877 100.0 % (7 / 7) 100.0 % (2 / 2)
apply_typmod_special GIC 1296 100.0 % (9 / 9) 75.0 % (6 / 8)
ceil_var GIC 136 100.0 % (9 / 9) 100.0 % (4 / 4)
cmp_abs GIC 469568 100.0 % (3 / 3)
cmp_numerics GIC 18706514 100.0 % (24 / 24) 95.2 % (40 / 42)
cmp_var GIC 114439 100.0 % (5 / 5)
cmp_var_common GIC 18810929 100.0 % (18 / 18) 100.0 % (16 / 16)
compute_bucket GIC 322 100.0 % (14 / 14)
do_int128_accum GIC 371066 100.0 % (6 / 6) 100.0 % (2 / 2)
do_int128_discard GIC 208 100.0 % (6 / 6) 100.0 % (2 / 2)
do_numeric_accum GIC 1409012 100.0 % (23 / 23) 100.0 % (14 / 14)
duplicate_numeric GIC 18823 100.0 % (4 / 4)
estimate_ln_dweight GIC 534 100.0 % (22 / 22) 100.0 % (12 / 12)
floor_var GIC 72 100.0 % (9 / 9) 100.0 % (4 / 4)
free_var GIC 2780091 100.0 % (6 / 6) 100.0 % (2 / 2)
gcd_var GIC 148 100.0 % (26 / 26) 90.0 % (9 / 10)
generate_series_numeric GIC 80256 100.0 % (2 / 2)
generate_series_step_numeric GIC 80556 100.0 % (45 / 45) 82.5 % (33 / 40)
get_str_from_var GIC 559333 100.0 % (49 / 49) 100.0 % (24 / 24)
init_var_from_num GIC 3869401 100.0 % (8 / 8) 92.9 % (13 / 14)
int128_deserialize GIC 58 100.0 % (4 / 4)
int128_serialize GIC 58 100.0 % (4 / 4)
int128_to_numericvar GIC 6281 100.0 % (19 / 19) 100.0 % (4 / 4)
int2_accum GIC 132 100.0 % (7 / 7) 100.0 % (6 / 6)
int2_numeric GIC 5 100.0 % (3 / 3)
int4_accum GIC 161132 100.0 % (7 / 7) 100.0 % (6 / 6)
int4_numeric GIC 1037569 100.0 % (3 / 3)
int4_sum GIC 3269520 100.0 % (11 / 11) 100.0 % (6 / 6)
int64_to_numeric GIC 1245346 100.0 % (6 / 6)
int64_to_numericvar GIC 1262040 100.0 % (23 / 23) 100.0 % (6 / 6)
int8_accum GIC 160132 100.0 % (7 / 7) 100.0 % (6 / 6)
int8_avg_accum GIC 212605 100.0 % (7 / 7) 100.0 % (6 / 6)
int8_numeric GIC 24588 100.0 % (3 / 3)
is_valid_numeric_typmod GIC 119112 100.0 % (2 / 2)
log_var GIC 156 100.0 % (21 / 21)
makeInt128AggStateCurrentContext GIC 42 100.0 % (4 / 4)
makeNumericAggStateCurrentContext GIC 56 100.0 % (5 / 5)
make_numeric_typmod GIC 1079 100.0 % (2 / 2)
make_numeric_typmod_safe GIC 1124 100.0 % (6 / 6) 100.0 % (12 / 12)
make_result GIC 1504700 100.0 % (2 / 2)
mod_var GIC 275442 100.0 % (7 / 7)
mul_var GIC 795602 100.0 % (90 / 90) 95.0 % (38 / 40)
mul_var_short GIC 772974 100.0 % (131 / 131) 88.6 % (31 / 35)
numeric_abs GIC 13004 100.0 % (11 / 11) 83.3 % (5 / 6)
numeric_accum GIC 428 100.0 % (7 / 7) 100.0 % (6 / 6)
numeric_add GIC 168448 100.0 % (5 / 5)
numeric_add_safe GIC 169142 100.0 % (23 / 23) 95.0 % (19 / 20)
numeric_avg GIC 52 100.0 % (18 / 18) 87.5 % (14 / 16)
numeric_avg_accum GIC 1248516 100.0 % (7 / 7) 100.0 % (6 / 6)
numeric_ceil GIC 148 100.0 % (9 / 9) 100.0 % (2 / 2)
numeric_cmp GIC 610754 100.0 % (7 / 7) 100.0 % (4 / 4)
numeric_cmp_abbrev GIC 126505 100.0 % (6 / 6) 100.0 % (4 / 4)
numeric_div GIC 98475 100.0 % (5 / 5)
numeric_eq GIC 448632 100.0 % (7 / 7) 100.0 % (4 / 4)
numeric_exp GIC 65 100.0 % (20 / 20) 87.5 % (7 / 8)
numeric_fac GIC 33 100.0 % (20 / 20) 78.6 % (11 / 14)
numeric_fast_cmp GIC 17326132 100.0 % (9 / 9) 100.0 % (4 / 4)
numeric_floor GIC 84 100.0 % (9 / 9) 100.0 % (2 / 2)
numeric_gcd GIC 144 100.0 % (12 / 12) 100.0 % (4 / 4)
numeric_ge GIC 7947 100.0 % (7 / 7) 75.0 % (3 / 4)
numeric_gt GIC 33634 100.0 % (7 / 7) 100.0 % (4 / 4)
numeric_inc GIC 32 100.0 % (9 / 9) 100.0 % (2 / 2)
numeric_int4_safe GIC 4863 100.0 % (9 / 9) 83.3 % (10 / 12)
numeric_int8_safe GIC 387 100.0 % (9 / 9) 83.3 % (10 / 12)
numeric_is_inf GIC 893 100.0 % (2 / 2)
numeric_is_nan GIC 4483 100.0 % (2 / 2)
numeric_larger GIC 12420 100.0 % (6 / 6) 100.0 % (2 / 2)
numeric_lcm GIC 164 100.0 % (18 / 18) 100.0 % (8 / 8)
numeric_le GIC 10630 100.0 % (7 / 7) 100.0 % (4 / 4)
numeric_ln GIC 140 100.0 % (17 / 17) 83.3 % (5 / 6)
numeric_log GIC 240 100.0 % (25 / 25) 84.6 % (22 / 26)
numeric_lt GIC 250816 100.0 % (7 / 7) 100.0 % (4 / 4)
numeric_min_scale GIC 60 100.0 % (8 / 8) 100.0 % (2 / 2)
numeric_mod GIC 275183 100.0 % (5 / 5)
numeric_mod_safe GIC 275191 100.0 % (20 / 20) 88.9 % (16 / 18)
numeric_ne GIC 3584 100.0 % (7 / 7) 100.0 % (4 / 4)
numeric_out GIC 537159 100.0 % (11 / 11) 100.0 % (6 / 6)
numeric_out_sci GIC 164 100.0 % (10 / 10) 100.0 % (6 / 6)
numeric_poly_avg GIC 24 100.0 % (10 / 10) 66.7 % (4 / 6)
numeric_poly_stddev_internal GIC 278 100.0 % (18 / 18) 50.0 % (3 / 6)
numeric_poly_stddev_samp GIC 106 100.0 % (6 / 6) 75.0 % (3 / 4)
numeric_poly_sum GIC 680 100.0 % (9 / 9) 100.0 % (6 / 6)
numeric_poly_var_samp GIC 84 100.0 % (6 / 6) 75.0 % (3 / 4)
numeric_power GIC 1149 100.0 % (64 / 64) 89.4 % (59 / 66)
numeric_round GIC 5217 100.0 % (15 / 15) 100.0 % (4 / 4)
numeric_scale GIC 81 100.0 % (5 / 5) 75.0 % (3 / 4)
numeric_send GIC 35 100.0 % (11 / 11) 100.0 % (2 / 2)
numeric_sign_internal GIC 2476 100.0 % (11 / 11) 87.5 % (14 / 16)
numeric_smaller GIC 543 100.0 % (6 / 6) 100.0 % (2 / 2)
numeric_sortsupport GIC 799 100.0 % (17 / 17) 100.0 % (2 / 2)
numeric_sqrt GIC 108 100.0 % (17 / 17) 83.3 % (5 / 6)
numeric_stddev_samp GIC 116 100.0 % (6 / 6) 75.0 % (3 / 4)
numeric_sub GIC 46347 100.0 % (5 / 5)
numeric_sub_safe GIC 46451 100.0 % (23 / 23) 95.0 % (19 / 20)
numeric_sum GIC 113926 100.0 % (17 / 17) 87.5 % (14 / 16)
numeric_support GIC 427 100.0 % (21 / 21) 68.8 % (11 / 16)
numeric_trim_scale GIC 227 100.0 % (9 / 9) 100.0 % (2 / 2)
numeric_trunc GIC 442 100.0 % (15 / 15) 100.0 % (4 / 4)
numeric_typmod_precision GIC 32897 100.0 % (2 / 2)
numeric_typmod_scale GIC 28005 100.0 % (2 / 2)
numeric_var_samp GIC 120 100.0 % (6 / 6) 75.0 % (3 / 4)
numerictypmodin GIC 1047 100.0 % (9 / 9) 83.3 % (5 / 6)
numericvar_deserialize GIC 64 100.0 % (9 / 9) 100.0 % (2 / 2)
numericvar_serialize GIC 64 100.0 % (8 / 8) 100.0 % (2 / 2)
numericvar_to_int32 GIC 5352 100.0 % (7 / 7) 100.0 % (6 / 6)
numericvar_to_int64 GIC 6666 100.0 % (30 / 30) 88.9 % (16 / 18)
power_ten_int GIC 152 100.0 % (10 / 10) 100.0 % (6 / 6)
random_numeric GIC 22308 100.0 % (16 / 16) 75.0 % (12 / 16)
random_var GIC 22292 100.0 % (57 / 57) 93.3 % (28 / 30)
round_var GIC 168256 100.0 % (39 / 39) 91.7 % (22 / 24)
select_div_scale GIC 99383 100.0 % (24 / 24) 80.0 % (8 / 10)
set_var_from_num GIC 8816 100.0 % (8 / 8) 92.9 % (13 / 14)
set_var_from_var GIC 24591 100.0 % (11 / 11) 100.0 % (4 / 4)
strip_var GIC 2188645 100.0 % (15 / 15) 100.0 % (10 / 10)
sub_var GIC 351265 100.0 % (35 / 35) 85.7 % (12 / 14)
trunc_var GIC 280505 100.0 % (17 / 17) 100.0 % (6 / 6)
xdigit_value GIC 472 100.0 % (4 / 4) 66.7 % (8 / 12)
zero_var GIC 38245 100.0 % (8 / 8) 100.0 % (2 / 2)

Generated by: LCOV version 2.0-1