From c8a026e4f15e2063cd7fe6cb9ffe44f2a81398bd Mon Sep 17 00:00:00 2001 From: Stephen Frost Date: Mon, 29 Sep 2014 13:32:22 -0400 Subject: Revert 95d737ff to add 'ignore_nulls' Per discussion, revert the commit which added 'ignore_nulls' to row_to_json. This capability would be better added as an independent function rather than being bolted on to row_to_json. Additionally, the implementation didn't address complex JSON objects, and so was incomplete anyway. Pointed out by Tom and discussed with Andrew and Robert. --- src/include/utils/json.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/utils/json.h') diff --git a/src/include/utils/json.h b/src/include/utils/json.h index 9d8a0a55a88..82cc48b7113 100644 --- a/src/include/utils/json.h +++ b/src/include/utils/json.h @@ -23,7 +23,9 @@ extern Datum json_out(PG_FUNCTION_ARGS); extern Datum json_recv(PG_FUNCTION_ARGS); extern Datum json_send(PG_FUNCTION_ARGS); extern Datum array_to_json(PG_FUNCTION_ARGS); +extern Datum array_to_json_pretty(PG_FUNCTION_ARGS); extern Datum row_to_json(PG_FUNCTION_ARGS); +extern Datum row_to_json_pretty(PG_FUNCTION_ARGS); extern Datum to_json(PG_FUNCTION_ARGS); extern Datum json_agg_transfn(PG_FUNCTION_ARGS); -- cgit v1.2.3