| 915 | */ |
| 916 | PG_FUNCTION_INFO_V1(array_cum_prod); |
| 917 | Datum |
| 918 | array_cum_prod(PG_FUNCTION_ARGS){ |
| 919 | if (PG_ARGISNULL(0)) { PG_RETURN_NULL(); } |
| 920 | |
| 921 | ArrayType *v = PG_GETARG_ARRAYTYPE_P(0); |
| 922 | ArrayType *res = General_Array_to_Cumulative_Array(v, Float8GetDatum(1.0), element_mult); |
| 923 | |
| 924 | PG_FREE_IF_COPY(v, 0); |
| 925 | PG_RETURN_ARRAYTYPE_P(res); |
| 926 | } |
| 927 | |
| 928 | /* |
| 929 | * This function removes elements with specified value from an array. |
nothing calls this directly
no test coverage detected