458 ArrayType *v = DatumGetArrayTypeP(array);
459 Oid element_type = ARR_ELEMTYPE(v);
474 nitems = ArrayGetNItems(ndim, dim);
478 appendStringInfoString(
result,
"[]");
482 get_typlenbyvalalign(element_type,
483 &typlen, &typbyval, &typalign);
486 &tcategory, &outfuncoid);
488 deconstruct_array(v, element_type, typlen, typbyval,
489 typalign, &elements, &nulls,
493 outfuncoid, use_line_feeds);
char result[OUT_DOUBLE_BUFFER_SIZE]
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)