pgsql: Get rid of unnecessary memory allocation in jsonb_subscript_assi

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Get rid of unnecessary memory allocation in jsonb_subscript_assi
Date: 2021-02-01 11:07:58
Message-ID: E1l6X3m-0006l6-KA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2021-02-01 12:41:59 Re: pgsql: Implementation of subscripting for jsonb
Previous Message Alexander Korotkov 2021-02-01 10:35:01 Re: pgsql: Fix portability issue in new jsonbsubs code.