Split out code into new getKeyJsonValueFromContainer()
Alvaro Herrera <alvherre@alvh.no-ip.org>
Split out code into new getKeyJsonValueFromContainer() The new function stashes its output value in a JsonbValue that can be passed in by the caller, which enables some of them to pass stack-allocated structs -- saving palloc cycles. It also allows some callers that know they are handling a jsonb object to use this new jsonb object-specific API, instead of going through generic container findJsonbValueFromContainer. Author: Nikita Glukhov Discussion: https://postgr.es/m/7c417f90-f95f-247e-ba63-d95e39c0ad14@postgrespro.ru
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonb_util.c | modified | +93 −50 |
| src/backend/utils/adt/jsonfuncs.c | modified | +17 −35 |
| src/include/utils/jsonb.h | modified | +3 −0 |
Discussion
- Optimization of some jsonb functions 10 messages · 2019-02-22 → 2019-09-21