pgsql: Get rid of unnecessary memory allocation in jsonb_subscript_assi - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Get rid of unnecessary memory allocation in jsonb_subscript_assi
Date
Msg-id E1l6X3m-0006l6-KA@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Get rid of unnecessary memory allocation in jsonb_subscript_assign()

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bb513b364b4fe31574574c8d0afbb2255268b321

Modified Files
--------------
src/backend/utils/adt/jsonbsubs.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Fix portability issue in new jsonbsubs code.
Next
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Implementation of subscripting for jsonb