Thread: pgsql: Avoid some pnstrdup()s when constructing jsonb

pgsql: Avoid some pnstrdup()s when constructing jsonb

From
Heikki Linnakangas
Date:
Avoid some pnstrdup()s when constructing jsonb

This speeds up text to jsonb parsing and hstore to jsonb conversions
somewhat.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d3c72e23df6ef1fde8122db589d12d49c8495535

Modified Files
--------------
contrib/hstore/hstore_io.c    |    8 ++++----
src/backend/utils/adt/json.c  |    3 ---
src/backend/utils/adt/jsonb.c |    4 ++--
src/include/utils/jsonapi.h   |    4 ++++
4 files changed, 10 insertions(+), 9 deletions(-)