From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Get rid of unnecessary memory allocation in jsonb_subscript_assi
Date: Mon, 01 Feb 2021 11:07:58 +0000
Message-ID: <E1l6X3m-0006l6-KA@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: akorotkov@postgresql.org
Subject: Re: pgsql: Get rid of unnecessary memory allocation in jsonb_subscript_assi
In-Reply-To: <E1l6X3m-0006l6-KA@gemulon.postgresql.org>
References: <E1l6X3m-0006l6-KA@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox