diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2014-03-26 10:18:24 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2014-03-26 10:18:24 -0400 |
commit | f9c6d72cbf49257fea4265d994b96e66f25b2474 (patch) | |
tree | cb6117cc88855a54d382bbeae26303ee9a24af0b /src/include/utils/json.h | |
parent | 28475f8e58bd5da2b44a42203665a543f335c6a3 (diff) | |
download | postgresql-f9c6d72cbf49257fea4265d994b96e66f25b2474.tar.gz postgresql-f9c6d72cbf49257fea4265d994b96e66f25b2474.zip |
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/json.h')
-rw-r--r-- | src/include/utils/json.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/json.h b/src/include/utils/json.h index b5e947bd7af..82cc48b7113 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 */ |