Get rid of unnecessary memory allocation in jsonb_subscript_assign()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: bb513b364b4fe31574574c8d0afbb2255268b321
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2021-02-01T11:06:02Z
Releases: 14.0
Get rid of unnecessary memory allocation in jsonb_subscript_assign()

Current code allocates memory for JsonbValue, but it could be placed locally.

Files

PathChange+/−
src/backend/utils/adt/jsonbsubs.c modified +7 −7