Get rid of unnecessary memory allocation in jsonb_subscript_assign()
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 1 Feb 2021 11:06:02 +0000 (14:06 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 1 Feb 2021 11:06:02 +0000 (14:06 +0300)
commitbb513b364b4fe31574574c8d0afbb2255268b321
tree22466321000ba1185e43e729b3898ffb873c5815
parentfe61df7f82aa6e0879476146dbe1da9c89b4946b
Get rid of unnecessary memory allocation in jsonb_subscript_assign()

Current code allocates memory for JsonbValue, but it could be placed locally.
src/backend/utils/adt/jsonbsubs.c