summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorAndrew Dunstan2014-03-26 14:18:24 +0000
committerAndrew Dunstan2014-03-26 14:18:24 +0000
commitf9c6d72cbf49257fea4265d994b96e66f25b2474 (patch)
treecb6117cc88855a54d382bbeae26303ee9a24af0b /src/include/utils
parent28475f8e58bd5da2b44a42203665a543f335c6a3 (diff)
Cleanup around json_to_record/json_to_recordset
Set function parameter names and defaults. Add jsonb versions (which the code already provided for so the actual new code is trivial). Add jsonb regression tests and docs. Bump catalog version (which I apparently forgot to do when jsonb was committed).
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/json.h b/src/include/utils/json.h
index b5e947bd7a..82cc48b711 100644
--- a/src/include/utils/json.h
+++ b/src/include/utils/json.h
@@ -78,5 +78,7 @@ extern Datum jsonb_array_elements_text(PG_FUNCTION_ARGS);
extern Datum jsonb_array_elements(PG_FUNCTION_ARGS);
extern Datum jsonb_populate_record(PG_FUNCTION_ARGS);
extern Datum jsonb_populate_recordset(PG_FUNCTION_ARGS);
+extern Datum jsonb_to_record(PG_FUNCTION_ARGS);
+extern Datum jsonb_to_recordset(PG_FUNCTION_ARGS);
#endif /* JSON_H */