mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Add json_strip_nulls and jsonb_strip_nulls functions.
The functions remove object fields, including in nested objects, that have null as a value. In certain cases this can lead to considerably smaller datums, with no loss of semantic information. Andrew Dunstan, reviewed by Pavel Stehule.
This commit is contained in:
@ -63,6 +63,7 @@ extern Datum json_populate_record(PG_FUNCTION_ARGS);
|
||||
extern Datum json_populate_recordset(PG_FUNCTION_ARGS);
|
||||
extern Datum json_to_record(PG_FUNCTION_ARGS);
|
||||
extern Datum json_to_recordset(PG_FUNCTION_ARGS);
|
||||
extern Datum json_strip_nulls(PG_FUNCTION_ARGS);
|
||||
|
||||
extern Datum jsonb_object_field(PG_FUNCTION_ARGS);
|
||||
extern Datum jsonb_object_field_text(PG_FUNCTION_ARGS);
|
||||
@ -80,5 +81,6 @@ 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);
|
||||
extern Datum jsonb_strip_nulls(PG_FUNCTION_ARGS);
|
||||
|
||||
#endif /* JSON_H */
|
||||
|
Reference in New Issue
Block a user