437 ArrayType *v = DatumGetArrayTypeP(array);
438 Oid element_type = ARR_ELEMTYPE(v);
453 nitems = ArrayGetNItems(ndim, dim);
457 appendStringInfoString(result,
"[]");
461 get_typlenbyvalalign(element_type,
462 &typlen, &typbyval, &typalign);
465 &tcategory, &outfuncoid);
467 deconstruct_array(v, element_type, typlen, typbyval,
468 typalign, &elements, &nulls,
472 outfuncoid, use_line_feeds);
static void json_categorize_type(Oid typoid, JsonTypeCategory *tcategory, Oid *outfuncoid)
static void array_dim_to_json(StringInfo result, int dim, int ndims, int *dims, Datum *vals, bool *nulls, int *valcount, JsonTypeCategory tcategory, Oid outfuncoid, bool use_line_feeds)