| 461 | */ |
| 462 | PG_FUNCTION_INFO_V1(array_sum_big); |
| 463 | Datum |
| 464 | array_sum_big(PG_FUNCTION_ARGS){ |
| 465 | if (PG_ARGISNULL(0)) { PG_RETURN_NULL(); } |
| 466 | |
| 467 | ArrayType *v = PG_GETARG_ARRAYTYPE_P(0); |
| 468 | |
| 469 | Datum res = General_Array_to_Element(v, Float8GetDatum(0), 0.0, |
| 470 | element_sum, noop_finalize); |
| 471 | |
| 472 | PG_FREE_IF_COPY(v, 0); |
| 473 | |
| 474 | return(res); |
| 475 | } |
| 476 | |
| 477 | /* |
| 478 | * This function returns sum of the array elements. |
nothing calls this directly
no test coverage detected