Commit cf35346
committed
Make json_populate_record and friends operate recursively
With this change array fields are populated from json(b) arrays, and
composite fields are populated from json(b) objects.
Along the way, some significant code refactoring is done to remove
redundancy in the way to populate_record[_set] and to_record[_set]
functions operate, and some significant efficiency gains are made by
caching tuple descriptors.
Nikita Glukhov, edited some by me.
Reviewed by Aleksander Alekseev and Tom Lane.1 parent 510074f commit cf35346
6 files changed
+2412
-560
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11546 | 11546 | | |
11547 | 11547 | | |
11548 | 11548 | | |
11549 | | - | |
| 11549 | + | |
11550 | 11550 | | |
11551 | 11551 | | |
11552 | | - | |
11553 | | - | |
11554 | | - | |
| 11552 | + | |
| 11553 | + | |
| 11554 | + | |
11555 | 11555 | | |
11556 | 11556 | | |
11557 | 11557 | | |
| |||
11640 | 11640 | | |
11641 | 11641 | | |
11642 | 11642 | | |
11643 | | - | |
| 11643 | + | |
11644 | 11644 | | |
11645 | 11645 | | |
11646 | | - | |
11647 | | - | |
11648 | | - | |
| 11646 | + | |
| 11647 | + | |
| 11648 | + | |
11649 | 11649 | | |
11650 | 11650 | | |
11651 | 11651 | | |
| |||
0 commit comments