On Fri, 2 Sept 2022 at 12:55, Ranier Vilela <ranier...@gmail.com> wrote:
> Why not?
> astate_values = accumArrayResult(astate_values,
>                           PointerGetDatum(a),
>                           false,
>                          TEXTOID,
>                          CurrentMemoryContext);
>
> Is it possible to avoid cstring_to_text conversion?

Note the element_type is being passed to accumArrayResult() as
TEXTOID, so we should be passing a text type, not a cstring type. The
conversion to text is required.

David


Reply via email to