aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/tqueue.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-09-18 14:39:39 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-09-18 14:39:39 -0400
commitc00c3249e3247d24751d97ff6f26603810593414 (patch)
treea07b7ec5ee0b483305ac232a6f16c129ae88447c /src/backend/executor/tqueue.c
parentd9c0c728afe734b7087dbb9a4bc16d5b682d139d (diff)
downloadpostgresql-c00c3249e3247d24751d97ff6f26603810593414.tar.gz
postgresql-c00c3249e3247d24751d97ff6f26603810593414.zip
Cache argument type information in json(b) aggregate functions.
These functions have been looking up type info for every row they process. Instead of doing that we only look them up the first time through and stash the information in the aggregate state object. Affects json_agg, json_object_agg, jsonb_agg and jsonb_object_agg. There is plenty more work to do in making these more efficient, especially the jsonb functions, but this is a virtually cost free improvement that can be done right away. Backpatch to 9.5 where the jsonb variants were introduced.
Diffstat (limited to 'src/backend/executor/tqueue.c')
0 files changed, 0 insertions, 0 deletions