aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/json.h
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2012-02-03 12:11:16 -0500
committerAndrew Dunstan <andrew@dunslane.net>2012-02-03 12:11:16 -0500
commit39909d1d39ae57c3a655fc7010e394e26b90fec9 (patch)
tree7eff6f5605be63418574a53b085ed1fd420cd223 /src/include/utils/json.h
parent69e9768e7b183d4b276d0e067a5a0000689580eb (diff)
downloadpostgresql-39909d1d39ae57c3a655fc7010e394e26b90fec9.tar.gz
postgresql-39909d1d39ae57c3a655fc7010e394e26b90fec9.zip
Add array_to_json and row_to_json functions.
Also move the escape_json function from explain.c to json.c where it seems to belong. Andrew Dunstan, Reviewd by Abhijit Menon-Sen.
Diffstat (limited to 'src/include/utils/json.h')
-rw-r--r--src/include/utils/json.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/utils/json.h b/src/include/utils/json.h
index ee87fd61d7c..415787b458d 100644
--- a/src/include/utils/json.h
+++ b/src/include/utils/json.h
@@ -20,5 +20,10 @@ extern Datum json_in(PG_FUNCTION_ARGS);
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 void escape_json(StringInfo buf, const char *str);
#endif /* XML_H */